Skip to content

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/rerank

Common fields include model, query, documents, top_n, and return_documents. It is suitable for reranking after retrieval.

Midjourney ​

Common paths:

MethodPathDescription
POST/mj/submit/imagineSubmit an image generation task
POST/mj/submit/actionPerform an action
POST/mj/submit/describeDescribe an image
GET/mj/task/{id}/fetchQuery a task
GET/mj/image/{id}Retrieve an image

Suno ​

MethodPathDescription
POST/suno/submit/{action}Submit a music or lyrics task
GET/POST/suno/fetchQuery 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.