Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Your First API Call

The Arcee Platform API is OpenAI compatible.

1. Generate an API Key

Create an API key from your Arcee Platform dashboard.

2. Choose a Model

Specify the model you want to run. Arcee provides a suite of open models, see the full list at pricing.

3. Run the Code Snippet

Use your API key and model name in the sample code below to make your first request.

curl -X POST "https://api.arcee.ai/api/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
        "model": "MODEL_NAME",
        "messages": [
          {"role": "system", "content": "You are a helpful assistant."},
          {"role": "user", "content": "Greetings!"}
        ],
        "stream": false
      }'
from openai import OpenAI 

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.arcee.ai/api/v1"
)

response = client.chat.completions.create(
    model="MODEL_NAME",
    messages=[
        {"role": "system", "content": "You are a helpful assistant"},
        {"role": "user", "content": "What is 25 + 37?"},
    ],
    stream=False
)

print(response.choices[0].message.content)
print(response.choices[0].message.reasoning)

Last updated