How do I use AI credits with any app, library or script?

Any app, library or script that lets you set an OpenAI-compatible address and API key can use your AI credits. Three settings:

  • Base URL: https://virsilipas.mcx.fi/v1
  • API key: your key from the Virsilipas AI key page (starts with vsk-)
  • Model: default, or another alias from the model list

Try it with curl

curl https://virsilipas.mcx.fi/v1/chat/completions \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"model": "default", "messages": [{"role": "user", "content": "Say hello."}]}'

The answer is in choices[0].message.content. Add "stream": true to stream it.

Formats it speaks

  • OpenAI chat completions at /v1/chat/completions, for most apps and libraries.
  • Anthropic Messages at /v1/messages, the format Claude Code uses.
  • The Gemini API at /v1beta/models/, the format Gemini CLI uses.

What works and what does not

  • Works: text chat, streaming, and tool or function calling where your own app runs the tools.
  • Does not work: images, audio and file attachments in a request (refused with unsupported_content), and tools that run on a model vendor's side, such as web search (unsupported_tool).
  • The service answers chat requests only. It has no embeddings, image generation or speech endpoints.

JavaScript and PHP examples: the README on GitHub. Every field, header and error: API reference.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are Pulsed Media AI credits?

AI credits pay for AI requests: questions you send to a language model from a script, a chat app...

How many AI credits does my plan earn?

Each service invoice you pay adds credits to your balance. The amount follows what you pay:...

Your AI credit balance: history, expiry and refunds

Your Virsilipas AI key page (AI credits in the client area menu) shows the credits you have left,...

Your AI key: where to find it, keep it safe, get a new one

Your AI key is on the Virsilipas AI key page: open AI credits in the client area menu and press...

What is the ~/.virsilipasKey file on my seedbox?

~/.virsilipasKey is a small file in your seedbox home directory that holds your AI key, so tools...