ChatGPT and the API are not the same thing
ChatGPT is the chat application, sold as a monthly subscription. The API gives your own code access to the same GPT models and is paid per token. If you are building a chatbot, an internal tool, an automation or a mobile app, the API is what you need.
Setup in three steps
- Create a Promptix account and an API key.
- Top up in dinars with Flouci, by Tunisian card or wallet.
- Use the official OpenAI SDK and change the base URL.
from openai import OpenAI client = OpenAI( base_url="https://promptix.tn/api/v1", api_key="sk_your_promptix_key",) reply = client.chat.completions.create( model="openai/gpt-6.1-terra", messages=[{"role": "user", "content": "Bonjour, qui es-tu ?"}],)print(reply.choices[0].message.content)import OpenAI from 'openai' const client = new OpenAI({ baseURL: 'https://promptix.tn/api/v1', apiKey: process.env.PROMPTIX_API_KEY,}) const reply = await client.chat.completions.create({ model: 'openai/gpt-6.1-terra', messages: [{ role: 'user', content: 'Bonjour, qui es-tu ?' }],})console.log(reply.choices[0].message.content)Streaming, tool calls, image inputs and JSON outputs work as they do with OpenAI. The quickstart covers each step.
What it really costs
You pay for input tokens (your message and its context) and output tokens (the answer). A thousand tokens is about 750 words. A short question with a one-paragraph answer uses a few hundred tokens, a fraction of a millime on small models. The current table is in the guide to prices in TND, and the calculator estimates a monthly budget.
What if I only want to chat, without code?
The same balance works on chat.promptix.tn, an AI agent that creates PowerPoint, Word and Excel files, runs Python and browses the web. You pay per use, with no subscription.
Frequently asked questions
What is the difference between ChatGPT Plus and the API?
ChatGPT Plus is a monthly subscription to the app. The API is paid per use, by token, and is called from your code.
Do I need an international card?
No. You top up in dinars through Flouci, with a Tunisian bank card or the Flouci wallet.
Can I cap my spending?
Yes. The balance is prepaid, so you can never spend more than you topped up, and each API key can have a monthly limit in TND.