FocalAPI Docs
Guides

Image Creation

Generate, edit, and call creative image models

Use POST /v1/images/generations to generate images and POST /v1/images/edits to edit them. Supported sizes, reference images, quality levels, and output formats differ by model; use the model catalog and request validation as the source of truth.

curl https://api.focalapi.com/v1/images/generations \
  -H "Authorization: Bearer $FOCALAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedream-5-0-pro-260628",
    "prompt": "A futuristic sneaker poster with glass texture, clean studio lighting, blue and white palette",
    "size": "1024x1024",
    "n": 1
  }'

Parameters

ParameterDescription
modelRequired. Use an image-model ID returned by GET /v1/models.
promptDescribe subject, composition, material, lighting, and style.
sizeResolution or aspect ratio, depending on the model.
nImage count; billed by actual output count.
qualityUse only when the model supports it.

Creative models validate parameters according to their native capabilities. For native Gemini image fields, see Comfy Cloud Image Models.

On this page