Skip to content
VoiceMint Developers

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

FieldTypeDescription
auto_select_modelbooleanAuto-select optimal model
enhance_promptbooleanEnable prompt enhancement
guidance_scalenumberGuidance scale
heightintegerImage height
model_idstringAI model ID (optional if auto_select_model)
negative_promptstringNegative prompt
num_inference_stepsintegerInference steps
num_outputsintegerNumber of images
project_idstringProject to link to
prompt*stringText prompt
prompt_contextstringEnvironment context
prompt_domainstringDomain
prompt_tonestringTone modifier
quality_prioritystringPriority for model selection: quality, speed, cost, or balanced
seedintegerRandom seed for reproducibility
widthintegerImage width

Response

200 application/json

FieldTypeDescription
credits_estimatedinteger
estimated_timeinteger
generation_id*string
message*string
status*string
{
  "credits_estimated": 0,
  "estimated_time": 0,
  "generation_id": "string",
  "message": "string",
  "status": "string"
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over 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"
}'