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