Quick start

If you are already using the OpenAI SDK, change only two parameters: base_url and api_key.

Quick start - apilane
01

Sign up

Go to api.apilane.one/register, create an account, and log in to the console.

02

Deposit

Visit the top-up page, pick a $2 / $5 / $10 / $20 tier, and pay with USDT (TRC20/BSC).

03

Create an API key

On the API Keys page, click "Add new token" and copy the generated sk-apilane-... key.

04

Change base_url

Replace the base_url in your code with https://api.apilane.one/v1 and pick a supported model name.

Code examples

from openai import OpenAI

client = OpenAI(
    api_key="sk-apilane-...",
    base_url="https://api.apilane.one/v1",
)

resp = client.chat.completions.create(
    model="MiniMax-M3",
    messages=[{"role": "user", "content": "Say hi in one word."}],
)
print(resp.choices[0].message.content)

Note: the example uses the MiniMax-M3 model. Visit the Models page for all tested models and prices.