Generate Image
POST/generate/image
Image generation — core's endpoint is SYNCHRONOUS, so the mirror is written already completed (after custody), and the frontend's first status poll returns the finished image.
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication. SDK: client.image.generate (Python), client.image.generate (Node).
Request body
application/json
| Field | Type | Description |
|---|---|---|
auto_select_model | boolean | Auto-select optimal model |
enhance_prompt | boolean | Enable prompt enhancement |
guidance_scale | number | Guidance scale |
height | integer | Image height |
model_id | string | AI model ID (optional if auto_select_model) |
negative_prompt | string | Negative prompt |
num_inference_steps | integer | Inference steps |
num_outputs | integer | Number of images |
project_id | string | Project to link to |
prompt* | string | Text prompt |
prompt_context | string | Environment context |
prompt_domain | string | Domain |
prompt_tone | string | Tone modifier |
quality_priority | string | Priority for model selection: quality, speed, cost, or balanced |
seed | integer | Random seed for reproducibility |
width | integer | Image width |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
credits_estimated | integer | |
estimated_time | integer | |
generation_id* | string | |
message* | string | |
status* | string |
{
"credits_estimated": 0,
"estimated_time": 0,
"generation_id": "string",
"message": "string",
"status": "string"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/generate/image" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "string"
}'