Quick Start
This page walks you through creating an account, getting an API key and making your first call. By the end you’ll have streamed a response, and know where to go for tool calling, vision, and structured outputs. To share credits and keys with other people, also see Share an organization.
1. Create your account
Section titled “1. Create your account”-
Sign in at console.aiand.com with Continue with Google, Continue with GitHub, or Continue with Email. The first sign-in creates your account.
-
On Welcome to ai&, select Create organization. Enter a name in Organization name and choose the Billing currency, which can’t be changed after the organization is created. Select Create organization. The console opens the new organization, and you are its Owner.
If someone has invited you, Welcome to ai& shows the invitation instead. Select Accept invitation to join their organization; you don’t need one of your own. If you signed in with GitHub, or with a Google account on an address that isn’t Gmail or Google Workspace, accept from the link in the invitation email instead. If you signed in with a company email address, it can also list your company’s organizations; see Company Domains.
Keys and credits go to the active organization. To share them with other people, share an organization now, before step 2.
2. Get a key and credits
Section titled “2. Get a key and credits”- Open API Keys and select Create API Key. Keys start with
sk-and are shown once — store it in your secret manager. - Add credits on the billing page. The minimum top-up is $5 for USD billing or ¥500 for JPY billing.
3. Make your first call
Section titled “3. Make your first call”pip install openaifrom openai import OpenAI
client = OpenAI( base_url="https://api.aiand.com/v1", api_key="sk-your-api-key",)
response = client.chat.completions.create( model="google/gemma-4-31b-it", messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)npm install openaiimport OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.aiand.com/v1", apiKey: "sk-your-api-key",});
const response = await client.chat.completions.create({ model: "google/gemma-4-31b-it", messages: [{ role: "user", content: "Hello!" }],});console.log(response.choices[0].message.content);curl https://api.aiand.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "google/gemma-4-31b-it", "messages": [{"role": "user", "content": "Hello!"}] }'4. Stream the response
Section titled “4. Stream the response”Add stream=True and iterate. You get tokens as they’re produced. Send the X-Aiand-Metrics: true header to also receive a final metrics event with token counts and cost.
stream = client.chat.completions.create( model="google/gemma-4-31b-it", messages=[{"role": "user", "content": "Tell me a haiku about Tokyo."}], stream=True, stream_options={"include_usage": True},)for chunk in stream: if chunk.choices: print(chunk.choices[0].delta.content or "", end="", flush=True)Streaming details, including the opt-in metrics trailer, are documented at Streaming.
5. Pick your next step
Section titled “5. Pick your next step”| You want to… | Go here |
|---|---|
| Let the model call your functions | Tool Calling |
| Get JSON output that matches a schema | Structured Outputs |
| Send an image to the model | Vision |
| Build something end-to-end (RAG, agent, extraction…) | Cookbook |
| Wire ai& into LangChain / LlamaIndex / Vercel AI SDK | Integrations |
| Migrate an existing OpenAI / Anthropic project | Migrating from OpenAI · Migrating from Anthropic |
Share an organization
Section titled “Share an organization”Credits, billing, API keys, and usage belong to an organization. When each person creates their own organization, each organization has a separate bill. To share one, one person invites the others to theirs. Do this after 1. Create your account and before 2. Get a key and credits.
-
Create the organization, if you need another one.
The organization you created in 1. Create your account can be shared as it is; go on to the next step. For a separate one, open the account menu at the top right and select Organizations. Select Create organization.
Enter your company’s name in Organization name and choose the Billing currency. The console offers no way to change the currency later. If you signed in to a company email address with an email link or a Google Workspace account, the page also offers to let people at your domain find the organization and ask to join. If you signed in to it another way, the page asks you to sign in with an email link first. See Company Domains. Select Create organization.
The console switches to the new organization.
-
Invite members.
Only the Owner and Admins can invite members. Creating the organization made you its Owner. Open the account menu, select Organizations, and select Members and settings on the new organization’s row. Select Invite member. Enter the person’s email address in Email, choose a Role, and select Send invitation. Compare roles shows what each role can do.
The console shows Invitation sent to and the address. This means the invitation was created, not that the email arrived. The person becomes a member when they accept it.
-
Ask each person to accept within 7 days.
The invitation email contains Accept invitation. Each person opens it, signs in with the email address the invitation was sent to, and selects Accept invitation, then Go to the console. The console opens the shared organization. Someone who is new to ai& sees the onboarding screens before Home.
The invitation expires after 7 days. If it expires, select Resend on it under Pending invitations on the Members tab.
-
Add a second Admin.
On the Members tab, select a member’s role in the Role column, choose Admin, and select Make Admin. Someone else can then manage the organization without you.
To change roles or remove members later, see Members & Roles.
Authentication beyond API keys
Section titled “Authentication beyond API keys”The console signs in with a session cookie and sends an X-Org-ID header instead of using an API key. See Authentication and Switching Orgs.