Quick Start
Get started
Section titled “Get started”-
Create an account at console.aiand.com and sign in with Google, GitHub, or a magic link.
-
Create an API key from the dashboard. Your key starts with
sk-and is shown once — save it somewhere safe. -
Add credits to your account via the billing page. You can purchase credits starting from $1.
-
Make your first request:
Terminal window curl https://api.aiand.com/v1/chat/completions \-H "Authorization: Bearer sk-your-api-key" \-H "Content-Type: application/json" \-d '{"model": "gpt-4o-mini","messages": [{"role": "user", "content": "Hello!"}]}'from openai import OpenAIclient = OpenAI(api_key="sk-your-api-key",base_url="https://api.aiand.com/v1",)response = client.chat.completions.create(model="gpt-4o-mini",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({apiKey: "sk-your-api-key",baseURL: "https://api.aiand.com/v1",});const response = await client.chat.completions.create({model: "gpt-4o-mini",messages: [{ role: "user", content: "Hello!" }],});console.log(response.choices[0].message.content);
Using with OpenAI SDKs
Section titled “Using with OpenAI SDKs”ai& is fully compatible with the OpenAI SDK. Just change the base_url / baseURL to https://api.aiand.com/v1 and use your ai& API key.
This works with any library or tool that supports the OpenAI API format, including LangChain, LlamaIndex, and others.
Next steps
Section titled “Next steps”- Browse available models and their pricing
- Learn about authentication options
- Explore the Chat Completions endpoint
- Check your usage via the Analytics API