Create an embedding
OpenAI compatible embeddings endpoint. Note: the auto-generated documentation only displays fields processed by our API. For the complete request and response schema, refer to the official OpenAI Embeddings API specification. This endpoint also supports additional custom request and response fields beyond the OpenAI spec. Requests that get timed out will be cancelled automatically. This endpoint is experimental and subject to change or removal.
In: header
The model to use. Models must be in the following format: model_owner/model_name or model_owner/model_name:version_number. If no version is specified, the prediction runs with the model's latest version otherwise it runs with the specified version.
Response Body
curl -X POST "https://api.wrift.ai/v1/openai/embeddings" \ -H "Content-Type: application/json" \ -d '{ "model": "hexgrad/kokoro-82m" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create a chat completion POST
OpenAI compatible chat completions endpoint. Note: the auto-generated documentation only displays fields processed by our API. For the complete request and response schema, refer to the official OpenAI Chat Completions API specification. This endpoint also supports additional custom request and response fields beyond the OpenAI spec. Requests that get timed out will be cancelled automatically. This endpoint is experimental and subject to change or removal.
Create a model response POST
OpenAI compatible responses endpoint. Note: the auto-generated documentation only displays fields processed by our API. For the complete request and response schema, refer to the official OpenAI Responses API specification. This endpoint also supports additional custom request and response fields beyond the OpenAI spec. Set background=true to return immediately with a 202 status code without waiting for the response to complete. You can then poll the get response endpoint to get the model's response. When background=false, requests that get timed out will be cancelled automatically. This endpoint is experimental and subject to change or removal.