generation

Start an image generation

Generates an image. Same authentication, billing, and error conventions as video generation. Model IDs come from GET /v1/models?type=image.

Async contract: returns 202 with a Location header pointing at the poll URL; poll every ~5 seconds until status is completed or failed. Idempotency: send Idempotency-Key so a retry cannot double-charge. Sandbox: send X-Sandbox: true to rehearse without spending credits.

post/v1/generate/image

Request

  • Base URL: https://aicontentdrop.com
  • URL: https://aicontentdrop.com/v1/generate/image
  • Auth: HTTP bearer

Query parameters

sandbox'true'

Query-parameter form of the X-Sandbox header, for clients that cannot set headers.

Headers

Idempotency-Keystring

Client-generated unique key (max 200 chars). Retrying with the same key returns the FIRST response instead of starting a second generation, so a dropped connection cannot double-charge. Reusing a key with a different body returns 409.

X-Sandbox'true'

Set to true to validate the request and receive a synthetic completed generation. No provider call, no credits spent, no record created. Use it to rehearse an integration before it costs money.

X-Sandbox'true' | '1'

Send true to rehearse this call. Returns a synthetic completed generation: no provider call, no credits, no history row. Validation still runs. Works without an API key, so the response shape is observable before a credential exists. Documented at https://aicontentdrop.com/docs/sandbox.

Idempotency-Keystring

Client-generated key (max 200 characters). A retry with the same key returns the FIRST response instead of starting a second generation. The same key with a different body is a 409. Keys are retained 24 hours.

Request body

promptstring required
modelstring

Image model ID from /v1/models?type=image

negativePromptstring
imageSizestring
widthinteger
heightinteger
seedinteger
stepsinteger
outputFormatstring
imageUrlstring uri

Source image for image-to-image models

imageUrlsstring[]

Example request

{
  "model": "nano_banana_pro"
}

Response

Accepted. Poll GET /v1/videos/{id} until status is completed or failed.

sandboxboolean

true when X-Sandbox: true was sent. Nothing was generated and no credits were spent.

Changes

No recorded changes to this operation across all 1 revision of this API.