Setup guides / OpenAI SDK

OpenAI SDK

Anthropic-style tools (Claude Code)

https://api.bidgrow.shop

OpenAI-style tools (Codex, Cursor, SDKs)

https://api.bidgrow.shop/v1

Base URL: https://api.bidgrow.shop/v1

Python

bash
pip install openai
python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.bidgrow.shop/v1",
    api_key="sk-your-key",
)

resp = client.chat.completions.create(
    model="claude-opus-5-5",
    messages=[{"role": "user", "content": "Say hello"}],
)
print(resp.choices[0].message.content)

Streaming:

python
stream = client.chat.completions.create(
    model="claude-opus-5-5",
    messages=[{"role": "user", "content": "Count to 5"}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Node.js

bash
npm install openai
js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.bidgrow.shop/v1",
  apiKey: process.env.BIDGROW_API_KEY, // sk-...
});

const resp = await client.chat.completions.create({
  model: "claude-opus-5-5",
  messages: [{ role: "user", content: "Say hello" }],
});
console.log(resp.choices[0].message.content);

Environment variables instead of code

macOS / Linux:

bash
export OPENAI_BASE_URL="https://api.bidgrow.shop/v1"
export OPENAI_API_KEY="sk-your-key"

Windows PowerShell:

powershell
$env:OPENAI_BASE_URL = "https://api.bidgrow.shop/v1"
$env:OPENAI_API_KEY = "sk-your-key"

List your models

python
for m in client.models.list():
    print(m.id)

Only the models allowed on your key are returned.

Notes

Verification status

base_url / baseURL and OPENAI_BASE_URL are standard official SDK options. The Responses API (client.responses.create) is not guaranteed on every model; prefer chat completions.