Bridge by Wekoya / Docs / Get started

Quickstart

Updated

Bridge speaks OpenAI's API. Use any OpenAI SDK with the base URL https://wekoya-api.wekoya.tech/v1 and your Bridge key.

  1. Your app sends a request OpenAI's format, with your Bridge key.
  2. Bridge picks a provider And tries another if the first fails before answering.
  3. The model answers Streamed or all at once.
  4. You see the cost In naira, on the reply and in the console.
  1. Create an account, top up under Billing (a bank transfer lands in about a minute) and create a key under API keys.
  2. Put the key in your environment: export WEKOYA_API_KEY=wk_live_…
  3. Send a request:
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://wekoya-api.wekoya.tech/v1",
    api_key=os.environ["WEKOYA_API_KEY"],
)

reply = client.chat.completions.create(
    model="auto",
    messages=[
        {"role": "user", "content": "Summarise this ticket for me."}
    ],
)

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

The key is a credential: keep it on your server and out of your repository. To try models before writing code, open the Playground in the console.