Generate one to four images from text
Changed onCreate an asynchronous image-generation task without source images. auto selects a live model that can satisfy the complete request; a concrete model is validated exactly as requested and is never substituted.
Request
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: Idempotency-Key
Headers
Request body
Generate one to four images from a prompt.
Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state
Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
Use auto for compatibility-based selection from the configured live candidates. A concrete model is evaluated exactly as requested and is never substituted.
Required prompt containing at least one non-whitespace character.
Requested output image count. The public range is one through four, and the selected model must support the exact count; Beatra does not split the request.
Desired output canvas. Presets are quality tiers, and target dimensions may be normalized or vary; inspect output images for actual dimensions.
Optional random seed. Supplying it constrains model eligibility; omit it for model-managed randomness.
Optional content or qualities to avoid. Supplying it constrains model eligibility and is rejected when no compatible model is available.
Ask the model to rewrite the prompt before generation. Omit or use null to keep the prompt exactly as written; an explicit boolean constrains model eligibility.
Three to ten weighted RGB colors. Runtime validation requires the weights to sum exactly to 1.0000.
Use independent for unrelated results, or sequence for a related image set. An explicit value constrains model eligibility and is rejected when unsupported.
Omit or use null to retain the selected model's documented default; an explicit boolean constrains model eligibility.
Response
Task accepted
Standard Task envelope.
Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.
Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.
Actual model that ran (null until execution starts; equals model for explicit-model calls)
Changes
- breaking
removed the enum value
image-01-liveof the request propertymodel - info
added the new
minimax-h3-imageenum value to the request propertymodel
- breaking