WISA

WISA AI API quickstart

Use https://api.askwisa.com/v1 as your base URL. Choose the endpoint and authentication for your model: OpenAI Responses, Anthropic Messages, or Chat Completions.

Create a WISA account · Create an API key · Compare API prices in VND

Make your first request in Python

Install openai. Set WISA_API_KEY in your local environment, not in source code. List the models your key can call. Before using the example below, confirm its model is listed or choose another model that supports Chat Completions.

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.askwisa.com/v1", api_key=os.environ["WISA_API_KEY"])
for model in client.models.list():
    print(model.id)
reply = client.chat.completions.create(
    model="glm-5.3-flash",
    messages=[{"role": "user", "content": "Reply with one short sentence."}],
)
print(reply.choices[0].message.content)

Which endpoint should I use?

EndpointUseAuthentication headers
GET /v1/modelsModels available to your keyAuthorization: Bearer
POST /v1/responsesOpenAI ResponsesAuthorization: Bearer
POST /v1/messagesAnthropic Messagesx-api-key; anthropic-version: 2023-06-01
POST /v1/chat/completionsChat CompletionsAuthorization: Bearer
POST /v1/embeddingsVector embeddingsAuthorization: Bearer

Troubleshooting