Create Async Job
Create an async job for long-running AI operations.
Model format: feature/subfeature/provider[/model]
Supported async features:
- audio/speech_to_text_async
Request body:
- model: Model string in format feature/subfeature/provider[/model]
- input: Feature-specific input parameters
- fallbacks: Optional list of fallback provider strings (max 3)
- webhook_receiver: Optional URL to receive job completion notification
- user_webhook_parameters: Optional custom parameters for webhook payload
Returns 202 Accepted with job info for polling.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Universal AI async request body.
Extends UniversalAIBody with webhook parameters for async notifications.
Model in format: feature/subfeature/provider[/model]
"text/ai_detection/openai/gpt-4"
"ocr/ocr/amazon"
"image/generation/google/imagen-3"
Feature-specific input parameters. Required fields depend on the feature/subfeature specified in provider. Examples:
- text/ai_detection: {'text': 'content to analyze'}
- text/embeddings: {'texts': ['text1', 'text2']}
- ocr/ocr: {'file_id': 'abc123', 'language': 'en'}
- image/generation: {'text': 'prompt', 'resolution': '1024x1024'}
- translation/document_translation: {'file_id': 'abc123', 'target_language': 'fr'}
{
"text": "Analyze this text for AI detection"
}{
"dimensions": 512,
"texts": ["text1", "text2"]
}{ "file_id": "abc123", "language": "en" }Provider-specific parameters
Fallback providers to try if the primary provider fails, in order. Accepted formats:
- 'provider' or 'provider/model' (e.g. 'amazon', 'openai/gpt-4')
- full model id (e.g 'text/moderation/google', 'image/generation/minimax/image-01')
3Include raw provider response in the output
Webhook URL to receive job completion notification
1 - 2083Custom parameters to include in webhook payload
Response
Successful Response
Async response from universal-ai/async endpoint.
Inherits base fields and adds job-specific fields for tracking async operations. Used for both job creation (202 Accepted) and job detail (GET) responses.
Request status: success, fail, or processing (async only)
success, fail, processing Cost in credits for this request
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Provider name that processed the request
Feature category (e.g., text, ocr, image)
Specific subfeature (e.g., ai_detection, sentiment)
Job ID for polling status
Job creation timestamp
Normalized output from the provider
Error details from the provider (only present when status is 'fail')
Raw response from the provider (if show_original_response=true)
Model name if specified in the request