Integrations

Curl

Copy-paste curl recipes for the Roteo API.

No SDK needed. Set your key once:

export ROTEO_API_KEY="sk_your_key"
bash · 1 lines

A chat request

curl https://api.roteo.ai/v1/chat/completions \
  -H "Authorization: Bearer $ROTEO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "messages": [{ "role": "user", "content": "Hello, Roteo!" }]
  }'
bash · 7 lines

Streaming

Add "stream": true and let curl print the events as they arrive:

curl -N https://api.roteo.ai/v1/chat/completions \
  -H "Authorization: Bearer $ROTEO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "stream": true,
    "messages": [{ "role": "user", "content": "Write a haiku about the sea." }]
  }'
bash · 8 lines

An image

curl https://api.roteo.ai/v1/images/generations \
  -H "Authorization: Bearer $ROTEO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "prompt": "an isometric cozy cafe on a floating island",
    "size": "1K"
  }'
bash · 8 lines

To bill a call on a specific chain, add -H "x-roteo-billing-chain: arbitrum". See Billing chains.

Curl | Roteo