Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WanAPI quickstarts

Minimal, copy-paste examples for calling frontier AI models through WanAPI — one OpenAI-compatible endpoint for GPT, Claude, Gemini, DeepSeek, image and video models.

Run it (any language)

export WANAPI_KEY=sk-...        # your key from the console
Lang Setup Run
Python pip install -r python/requirements.txt python python/chat.py
Node cd node && npm install node node/chat.mjs
Go cd go go run main.go
cURL bash curl/chat.sh

Expected output: one short sentence, e.g. Hello! How can I help you today?

What it costs

Billing is pay-as-you-go per token — you are charged only for what you send/receive. A "hello" round-trip like the examples costs a fraction of a cent. See live per-model pricing at https://wanapi.ai/pricing and the model catalog at https://wanapi.ai/model.

Notes

  • Never hard-code your key — read it from an environment variable (as shown).
  • Swap "model": "gpt-5.5" for any model id from https://wanapi.ai/model (e.g. claude-sonnet-4.7, gemini-3.5-flash, deepseek-v4-pro).
  • For long-running image/video jobs, use the async task API (see the docs at https://wanapi.ai/docs) instead of a single blocking call.
  • Issues / questions: open a GitHub issue or email support@wanapis.com — the founder replies within 24 hours.

License

MIT — do whatever you like with these snippets.

About

Minimal copy-paste examples for calling GPT, Claude, Gemini, DeepSeek, image & video through WanAPI — one OpenAI-compatible endpoint. Python, Node, Go, cURL.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages