Quick Start

Connect your application to the transit API in three steps.

This guide helps you complete the integration in 5 minutes. Our API is fully compatible with the OpenAI API format, so you can use it with almost no changes to your existing code.

Step 1: Create an API Key

Log in to the console → API Keys → click “Create Key”. New accounts receive free trial credits, with no credit card required.

Step 2: Replace base_url

Point the SDK’s base_url to our API endpoint and enter your key:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.vortapapi.com/v1",
    api_key="sk-vortap-xxxxxxxx",
)

Step 3: Call Any Model

Switch models freely via the model parameter:

resp = client.chat.completions.create(
    model="claude-sonnet-4",
    messages=[{"role": "user", "content": "你好"}],
)
print(resp.choices[0].message.content)

Tip: Change model to gpt-4o, gemini-2.5-pro, etc. to call the corresponding model; the key remains the same.