Images API

POST https://api.oneover.com/functions/v1/api-v1-images

Scope: images

Generate images from text prompts. The call is synchronous: the image URLs are in the response. Images do not emit job webhooks.

Request body

FieldTypeRequiredDescription
modelstringyesImage model ID
promptstringyesGeneration prompt
negative_promptstringnoWhat to avoid
aspect_ratiostringnoe.g. 1:1, 16:9
resolution_tierstringno1k, 2k, or 4k
nintegernoHow many images to generate, 1–4. Default 1. Credits are charged per image
storestringnolibrary (default), url, or none. library saves the result on the org owner's account
maskstringnoBase64-encoded mask for inpainting
reference_imagestringnoOne reference image, base64 or a URL the API can fetch
reference_imagesstring[]noAdditional reference images. Combined with reference_image

Response

{
  "request_id": "uuid",
  "model": "flux-2-pro",
  "image_url": "https://...",
  "image_urls": ["https://..."],
  "asset_ids": ["uuid"],
  "credits_charged": 6,
  "balance": { "subscription": 14994, "anytime": 5000 }
}

image_url is the first image. image_urls is the full set when n is greater than 1. asset_ids is empty when store is not library.

Markdown