API Overview
Browse HTTP endpoints by module. Each page lists operations, parameters, request bodies, and responses.
For integration flows and best practices, see the Guide.
V2fun Algorithm API Hub
Task-based multimodal generation and asset-processing APIs.
- Version:
1.5
Modules
Task State Objects
When polling a task status endpoint, the response body is one of the following formats depending on the current state.
Task has been accepted and is waiting in the queue (status: QUEUED). Returned with HTTP 201 from task-creation endpoints.
task_uuidtask_typemodelstatuscreated_atqueue_positionestimated_queue_timeTask is currently being processed (status: PROCESSING).
task_uuidtask_typemodelstatuscreated_atprogressTask has failed (status: FAILED). The result field may contain partial output if available before failure.
task_uuidtask_typemodelstatuscreated_atfailed_atresultWhen a task completes successfully (status: COMPLETED), the response body contains the endpoint-specific result object (e.g. ImageCaptionResponse). See each endpoint's 200 response schema for details.
Synchronous vs Asynchronous
Task-based endpoints may return one of two success codes:
| Status | When | Response body |
|---|---|---|
| 200 | Task completed within the request (synchronous) | Full task result |
| 201 | Task accepted but not yet complete (asynchronous) | Task reference with task_uuid |
For asynchronous tasks, poll the corresponding GET /{endpoint}/{task_uuid} endpoint using the task_uuid from the response body to retrieve the final result.
