.webp)


Create your account in seconds
Use credits across any supported model
Create an API key and start making
Experience next-generation reasoning, speed, and multimodal capability in a single model. Built for complex workflows, real-time decision-making, and creative execution. From code to content, GPT-5.5 adapts to every task with precision.

.webp)

import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.aimlapi.com/v1",
api_key="<YOUR_API_KEY>",
)
response = client.chat.completions.create(
model="deepseek/deepseek-r1",
messages=[
{
"role": "system",
"content": "You are an AI assistant who knows everything.",
},
{
"role": "user",
"content": "Tell me, why is the sky blue?"
},
],
)
message = response.choices[0].message.content
print(f"Assistant: {message}")