Skip to main content
Replace $OPENPAI_API_KEY in the examples below with your key to run them.

Basic chat

Streaming response

Vision input

Tool calling

JSON structured output

Claude native protocol

Claude thinking mode

Gemini native protocol

Embeddings

Rerank

Image generation

Text to speech

Speech to text

Model list

Account balance