Rerank and Task APIs
Rerank, Midjourney, Suno, and video generation are extended capabilities. They are not enabled for all deployments and channels.
Rerank
http
POST /v1/rerankCommon fields include model, query, documents, top_n, and return_documents. It is suitable for reranking after retrieval.
Midjourney
Common paths:
| Method | Path | Description |
|---|---|---|
| POST | /mj/submit/imagine | Submit an image generation task |
| POST | /mj/submit/action | Perform an action |
| POST | /mj/submit/describe | Describe an image |
| GET | /mj/task/{id}/fetch | Query a task |
| GET | /mj/image/{id} | Retrieve an image |
Suno
| Method | Path | Description |
|---|---|---|
| POST | /suno/submit/{action} | Submit a music or lyrics task |
| GET/POST | /suno/fetch | Query task results |
Task-based APIs are typically asynchronous. A successful submission only indicates that the task has entered the queue; the final result must be obtained by querying the task status.
