Hamad Bin Khalifa University · Example Payload

Hbku Fanar Chat Completion Example

Chat completion against the Fanar Arabic LLM. The API is OpenAI-client compatible: the provider's own Python sample points the openai SDK at base_url https://api.fanar.qa/v1.

UniversityHigher EducationEducationResearchQatarMiddle EastArtificial IntelligenceLarge Language ModelsNatural Language ProcessingArabicResearch ComputingResearch DataCourse CatalogRepositoryOpen Access

Hbku Fanar Chat Completion Example is an example object payload from Hamad Bin Khalifa University, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

x-provenanceoperationdescriptionrequestresponse

Example Payload

Raw ↑
{
  "x-provenance": {
    "generated": "2026-08-30",
    "method": "derived",
    "source": "openapi/_original/hbku-fanar-api-openapi.json#/paths/~1v1~1chat~1completions/post/x-codeSamples",
    "note": "Request shape taken verbatim from the provider's own cURL code sample. No response body is asserted — a 200 requires a registered API key and was not observed."
  },
  "operation": "POST /v1/chat/completions",
  "description": "Chat completion against the Fanar Arabic LLM. The API is OpenAI-client compatible: the provider's own Python sample points the openai SDK at base_url https://api.fanar.qa/v1.",
  "request": {
    "method": "POST",
    "url": "https://api.fanar.qa/v1/chat/completions",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_API_KEY_HERE"
    },
    "body": {
      "model": "Fanar",
      "messages": [
        { "role": "user", "content": "Your message here" }
      ]
    }
  },
  "response": {
    "status": 200,
    "note": "Not captured — authenticated call not performed. See components.schemas.ChatCompletionResponse in the OpenAPI for the documented shape."
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/hbku-fanar-chat-completion-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.