Actions6
- Market (AI Models) Actions
- Common (Account) Actions
- File (Storage) Actions
Market (AI Models) → Create Task
AI-generatedSummary
Create a new AI task using a selected AI model from specified categories in the Market (AI Models) resource, providing custom parameters and an optional webhook URL for asynchronous processing.
Inputs
- category — Select the category of AI models to use, such as Image Models, Video Models, Chat Models, or others.
- model (required) — Choose the specific AI model to create the task with; model options are dynamically loaded based on the category.
- prompt — Provide the main input prompt text that the AI model will process.
- customParameters — Specify advanced, model-specific tuning parameters as a JSON object.
- webhookUrl — Optional URL to receive asynchronous callbacks after task completion.
Output shape
an object representing the created AI task details, including task ID and status
The response includes confirmation of task creation and may contain metadata; if a webhook URL is provided, results are sent asynchronously to that URL.
Examples
Example 1: Create a text-to-image AI model task
Set category to 'Image Models', select the desired text-to-image model, provide a textual prompt, optionally include custom parameters for style or quality, and optionally specify a webhook URL to receive the generated images asynchronously.