Start Here
Make Your First Request
Create a key and stream your first response in three steps
1
Create a key
Generate an API key in the Stream console. It is only shown once.
2
Set the key
Keep the key in an environment variable instead of source control.
Terminal
export CAMEL_API_KEY="qaml_live_..."3
Send a request
Use any supported format. Streaming responses use server-sent events.
First request
curl --no-buffer https://stream.camelai.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{"role": "user", "content": "Write a haiku about distributed systems."}
],
"stream": true
}'