service_not_found — service not found
What happened
The order was not created. The response is a 422 with reason: "service_not_found" and no errors. The request passed field validation, but no service was found for it.
Why
The most common cause is a task_type that cannot be created with an API key. The values image, txt2img, remix, image_edit, and voice_clone are in the list of allowed values, so they pass field validation. But the public API has no service with that code. An API key can create only tts, sfx, music, and voice_search. The other values exist only for the GET /orders?task_type[]=… filter. Another cause is a service that exists but is disabled.
What to do right now
Send only the types that an API key can create.
Which request to send next
POST /orders with a supported task_type or with a template_id. TTS requires a template: the voice is set in the template, in config.tts_settings.voice_id, and an order has no voice_id field. GET /templates/config-options?service=<code> shows which config keys the service accepts.
Where to go next
This page for AI
API version 1.0.0