EN ▾
Get your key

Mistral api: Common Mistakes and Fixes

Developers often waste time and credits on configuration errors when using the mistral API because they assume standard OpenAI behaviors apply directly. This guide clarifies the specific constraints of our uncensored LLM service so you can integrate the openai compatible API without hidden friction.

Last updated

Summary

  • Our base URL is HTTPS://api.mistralllmapi.com/v1 and the model id is strictly "uncensored".

  • Streaming responses require parsing the final chunk for accurate token usage metrics.

  • Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens with no monthly fees.

  • Crypto payments via USDT or USDC include bonus credits for larger top-ups.

01

Confusing base URLs with endpoints

Our API base URL is HTTPS://api.mistralllmapi.com/v1, not the standard OpenAI endpoint. You must update your client configuration to point to this specific address. If you leave the default base URL, every request will fail with a 404 error. The endpoint itself remains POST /v1/chat/completions. This structure ensures compatibility with standard OpenAI SDKs. Developers often miss this simple change during initial setup. Verify your base_url variable immediately. It is the foundation of all connectivity.

Ignoring context window limits

The model supports a 100,000 token context window for prompt and completion combined. However, the maximum output per request is 16,000 tokens. If you do not set max_tokens, the limit drops to 2,048 tokens. Exceeding these limits results in truncated responses or errors. Plan your prompt length carefully. Short prompts allow for longer outputs. Long prompts restrict the response length. Monitor your token usage closely.

Assuming all models are uncensored

Not every model offered by other vendors lacks content filters. Our single model id is "uncensored". It is tuned to answer without refusals for lawful adult use. It is not GPT, Claude, or Llama. Do not assume other models behave the same way. Check the model id in your request. Our model does not refuse controversial topics. It handles nuanced prompts effectively. Verify the model name in your code.

Overlooking streaming implementation

Streaming is supported via Server-Sent Events. You must parse the final chunk to get accurate token usage. Token counts are not always accurate in intermediate chunks. Wait for the stop_reason to process. This ensures you pay only for completed requests. Errors and refusals are free. Streaming reduces latency for long outputs. It improves user experience significantly. Handle partial responses carefully. Check the last chunk for usage data.

Misunderstanding token costs

Our LLM API pricing is $0.15 per 1M input tokens. Output tokens cost $0.50 per 1M tokens. There are no monthly fees or subscriptions. Credit never expires. Errors do not consume credits. This model is transparent and predictable. Calculate your costs before scaling. Use streaming to monitor token counts. Avoid unnecessary retries to save credits. Prepaid credit is charged by real usage. Track your spending regularly.

Expecting content filters to behave like GPT

Our uncensored AI model does not use the same filters as GPT. It allows lawful adult content. It does not refuse standard controversial topics. Assume no default restrictions. Test your prompts thoroughly. The model is direct and unfiltered. It answers questions without hedging. Do not expect safety layers. Verify behavior with your specific use case. It is designed for unrestricted generation. No hidden blocks exist for standard content.

Not handling rate limits correctly

Each key allows 300 requests per minute. You can have 8 concurrent requests. The request body limit is 8 MB. Exceeding these limits returns a 429 error. Implement exponential backoff in your client. Do not hammer the API with parallel threads. Monitor your usage dashboard. Rate limits protect service stability. Adjust your concurrency settings accordingly. Retry logic is essential for robust apps. Respect the limits to avoid delays.

Mixing up model IDs and keys

Your API key authenticates the request. The model id "uncensored" selects the model. Do not confuse the two. Use "uncensored" in the model field. Your key goes in the Authorization header. Check your key in the dashboard. Generate a new key if needed. One active key per account. A new key replaces the old one. Keep your keys secure. Use environment variables for storage.

02

FAQ

How do I get a mistral API key?

Sign up on the Get API key page using Google or email. Your key is shown immediately. No phone number is required. You can generate a new key anytime to replace the old one.

What is the mistral API pricing?

Input tokens cost $0.15 per 1M tokens. Output tokens cost $0.50 per 1M tokens. There are no monthly fees. Errors are free. Credit never expires.

Which payment methods do you accept?

Crypto only: USDT on TRC20 or USDC on Base, any whole amount from $20 to $500. Bonus credit applies from $50.

Is the model truly uncensored?

Yes, the "uncensored" model does not refuse lawful adult or controversial topics. It is tuned for unrestricted generation. It is not GPT or Llama.

Get your API key

Sign up, copy the key, update your base URL. That is all.

Get your key