gradiated

Quickstart

Gradiated works with the OpenAI and Anthropic SDKs. Point your client at Gradiated, choose a model, and keep the request format you already use.

Send a request

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.gradiated.com",
    api_key=os.environ["GRADIATED_API_KEY"],
)

response = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[{"role": "user", "content": "Hello from Gradiated."}],
)

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

Base URL

Both SDKs use https://api.gradiated.com.

Choose a model from models and pricing. Replace YOUR_MODEL_ID with the copied ID.

Set the key as GRADIATED_API_KEY in your server environment. Do not put it in client-side code.

Next steps