Reference/generations

Create Generation

Create Generation Project API key or dashboard access token (JWT). Request examples use snake_case; schemas may also display accepted camelCase aliases. Replace resource placeholders with accessible IDs. See the guides for runtime model constraints and workflows.

POST/v1/generations
Open playground
Project API key or dashboard access token (JWT). See authentication.
This operation is asynchronous and initially returns 202 with a resource ID. Poll GET /v1/generations/{id} until a terminal state: completed, failed.

Authorizations

Project API key or dashboard access token (JWT).

Idempotency-Keystringoptional

Body (application/json)

characterIdstringoptional
modelAliasstringoptional
modelstringoptional
promptstringoptional
subjectstringoptional
actionstringoptional
environmentstringoptional
aspectRatiostringoptionaldefault: 1:1
seedintegeroptional
stepsintegeroptional

Response

202 - application/json
Successful Response
No detailed response model is declared for this operation. See its guide for response fields and lifecycle behavior.
Request Example
curl --fail-with-body -X POST "https://api.apimarketplace.com/v1/generations" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' --data '{"model_alias": "photoreal-v1", "prompt": "Architectural photography of a modern apartment in soft morning light", "aspect_ratio": "2:3"}'