GA
Global API
DocsGet Started
← Back to Blog
Tutorial2026-03-28

5-Minute AI Chat Integration: Global API Quick Start

5-Minute AI Chat Integration: Global API Quick Start

Only the baseURL changes. Everything else stays the same.

Python Example

from openai import OpenAI

client = OpenAI(

api_key="ga_xxxxxxxxxxxx",

base_url="https://global-apis.com/v1"

)

response = client.chat.completions.create(

model="deepseek-chat",

messages=[{"role": "user", "content": "Hello!"}]

)

print(response.choices[0].message.content)

JavaScript Example

import OpenAI from 'openai';

const client = new OpenAI({

apiKey: 'ga_xxxxxxxxxxxx',

baseURL: 'https://global-apis.com/v1',

});

const response = await client.chat.completions.create({

model: 'deepseek-chat',

messages: [{ role: 'user', content: 'Hello!' }],

});

Get Started with Global API →