Skip to Content
AI

AI on Zenifra

Zenifra offers AI models with simple integration, usage-based billing, and direct visibility in the console. The API works with OpenAI-compatible clients that let you configure base_url, api_key, and model.

There are two ways to use it: AI plans per member, with a fixed monthly price and a key of their own for each person, or on-demand AI, paid for the tokens used, described in this section.

Required permissions

ActionMinimum scope
Create and manage an AI keyai_key.create, ai_key.read, ai_key.update, or ai_key.delete according to the action
Read usage and costs for a keyai_usage.read on ai_key:<key-id>
Run inferenceUse the AI inference credential; it is separate from the organization API Key

An owner has full access in a user session. assistant, member, and API Keys need the specific grants.

Offering overview

AI model catalog with context window, capabilities and prices in reais

The current model catalog, with IDs in the zenifra/<model> format, context window, output limit, capabilities, and prices in BRL per million tokens, is public:

GET https://ai.zenifra.com/v1/models

Some examples from the current catalog:

ModelContextInput (BRL/1M tokens)Output (BRL/1M tokens)
zenifra/qwen3.8-flash1,000,000 tokens0.602.00
zenifra/deepseek-v4-flash-07311,000,000 tokens2.206.60
zenifra/kimi-k2.7-code229,376 tokens4.7019.40
zenifra/glm-5.21,048,576 tokens5.7020.00

If you already use the official OpenAI SDK, you only need to point base_url to https://ai.zenifra.com/v1, use the key created in the console, and select a catalog model enabled for that key, such as zenifra/qwen3.8-flash.

Pricing and billing

AI usage on Zenifra is billed by token. Some models have off-peak prices or tiers by input-token count; see AI model pricing. Always check current prices and available models in the public catalog or the Zenifra console, because availability can change over time.

AI usage is prepaid and charged per token against the organization's shared credit. When no usable credit remains, new calls are blocked. Saved cards and pending charges do not increase AI usage capacity.

Management in the console

AI usage panel with total spend, requests, tokens and success rate

In the Zenifra console, you can track:

  • total spend, requests, tokens, and success rate for the period (1, 7, or 30 days)
  • daily usage
  • usage by model
  • available models and their prices
  • created API keys, with spend and quota

Common errors

CodePossible causeHow to act
400 (invalid_request_error)invalid request, with a missing field or wrong format (Invalid request. Please check your input and try again.)fix the request body before retrying
401 (invalid_api_key)missing, invalid, or deactivated keyreview ZENIFRA_AI_API_KEY and create a new key if needed
403 (insufficient_permissions)the key is not allowed to access the requested resourcereview the key's allowed models
404 (model_not_found)the model does not exist or is unavailableuse an ID from the GET /v1/models catalog
405 (invalid_request_error)method not accepted for this path (This method is not allowed for this path.)use the documented method, for example GET on /v1/models; the allow header lists the accepted methods
408 (invalid_request_error)the request upload stalled for too long or the request timed out (Request upload timed out. or Request timed out. Please retry.)resend the full request
413 (invalid_request_error)request body too large (Request body too large.)reduce the content sent
429 (rate_limit_exceeded)requests-per-minute or tokens-per-minute limit exceededwait for the time given in the retry-after header, watch the x-ratelimit-* headers, apply backoff and reduce concurrency
429 (insufficient_quota)the organization has no credit or the key reached its quotaadd credit or review the key quota; retrying the call does not help

Responses carry the x-ratelimit-* headers with the key's request and token limits and remaining balance, when available. Use these values to adjust concurrency before you receive 429.

Getting started

To enable access, open AI Models in the Zenifra console. Then:

  1. click Create API Key and enter the key name
  2. select which models the key can access
  3. optionally define a daily and monthly quota for the key
  4. copy the key and use it in your application; it is shown only once

You can also set the key's requests-per-minute (RPM) and tokens-per-minute (TPM) limits, up to the organization's shared limit. The key quota never increases the organization's available credit.

Each organization can have up to 100 active AI keys. Allowed models must be catalog IDs or the option for all of the organization's models. Key creation and management are also available through the API; see Manage keys through the API.

The full step-by-step guide is in Getting started with AI.

FAQ

Is the API OpenAI-compatible?

Yes. The current offering is OpenAI-compatible and can be used with clients that allow configuring base_url and api_key.

Where do I see the exact model name?

Check the public catalog GET https://ai.zenifra.com/v1/models or the Available Models tab in the console. Use the id field, such as zenifra/qwen3.8-flash.

Does usage consume account credit?

Yes. AI exclusively uses the organization's usable credit. When it runs out, new calls are blocked; AI does not continue against a card or additional organization credit.

Next steps

Last updated on

On this page