Skip to content

Type to search the docs and the model list.

Chat

Chat completions, compatible with the OpenAI SDKs.

POST /v1/chat/completions, compatible with the OpenAI SDKs. Set "stream": true for long answers: without streaming, the whole answer has to arrive within about 90 seconds. More: Streaming, Tool calling and Structured output. To send pictures, PDFs or audio in a message, see Files.

curl https://api.ewest.ai/v1/chat/completions \
  -H "Authorization: Bearer $EWEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "ewest/gemini-flash", "stream": true,
       "messages": [{"role": "user", "content": "Hello!"}]}'