Images
Generate images
Changed onStarts a background job that generates images from a prompt, optionally editing or combining reference images. The response contains a job_id to poll with GET /image/{job_id}, and the credits the job will be charged. Requires a valid X-API-KEY header.
Throws:
- 400 if the model, resolution or aspect ratio is not supported, the model does not accept reference images, or the prompt references images the request does not carry
- 402 if the workspace does not have enough credits, or the model is not available on its plan
- 404 if a reference image does not exist or is not accessible
- 422 if the request body is invalid
post/image
Request
- Base URLhttps://api.wondercraft.ai/v1
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info