Quickstart

    Your first call, in three steps

    One key works for every model in the catalog, through the OpenAI-compatible endpoint or native Anthropic Messages.

    1What are you connecting?

    2Get a key

    Create an API key

    3Make the call

    from openai import OpenAI
    
    client = OpenAI(
        base_url="https://api.gatewayz.ai/v1",
        api_key="YOUR_GATEWAYZ_KEY",
    )
    
    reply = client.chat.completions.create(
        model="openai/gpt-4.1",
        messages=[{"role": "user", "content": "Hello"}],
    )
    print(reply.choices[0].message.content)

    New to APIs? Walk through your first Gatewayz API request step by step. Next: browse model ids, read the docs, or check pricing.