Decisions API

Use Gemini Decision 1 on Fikra API

The Decisions API returns calibrated answers for yes/no, choice and score questions. It is not an OpenAI-compatible chat endpoint.

Base URL: https://api.fikraapi.co.ke/v1Model: deepseek-v4.1-flash-10170.5 credit on signup

Steps

  1. 1. Create a key. Create a normal Fikra API key in the dashboard. Plan keys also work.
  2. 2. Set the endpoint. POST https://api.fikraapi.co.ke/v1/decisions with Authorization: Bearer YOUR_FIKRA_KEY.
  3. 3. Send input and questions. The body is the Google Decisions API body: input (text or content blocks) and questions. The model is fixed to gemini-decision-1.
  4. 4. Read answers. Each question returns noul, choice or score, plus probabilities and confidence. Threshold confidence before acting.
  5. 5. Price. $0.12 per 1M input tokens and $0 output. Google list price is $0.10 input.

Config

Base URL: https://api.fikraapi.co.ke/v1
API Key: YOUR_FIKRA_KEY
Model ID: deepseek-v4.1-flash-1017

Test it

Send a yes/no question about a short paragraph and check that answers.is_damaged includes noul and confidence.

What it costs

Default model: deepseek-v4.1-flash-1017. Prices come from the live catalog.

Input$0.05 / 1M
Cached input$0.0075 / 1M
Output$0.15 / 1M

Repeated prompt prefixes are billed at the cached rate. Cached input can never cost more than fresh input.

Get your key

Free model

While the window is open, model deepseek-v4-1-flash-economy-free is free. Check live availability.

Troubleshooting

Common errors.

401

The Fikra key is missing or invalid. Use the fk_live_ or fk_plan_ key from the dashboard.

400 safety

The upstream safety filter blocked the input. Rewrite the input and retry.

400 key validation

Question keys must match [A-Za-z0-9_-]+ and be at most 64 characters.

Source used for this guide: https://ai.google.dev/gemini-api/docs/decisions-api. If the tool changes its settings, open an issue and we will update this page.

More guides: all setup guides. Measured reliability: public stats. Prices: pricing. Free model: free DeepSeek API.