openapi: 3.1.0 info: title: Reka Chat API description: 'The Reka API exposes Reka''s multimodal foundation models through a REST interface that includes chat completions, vision (video and image management, search, Q&A, clip generation), speech transcription and translation, and a Research API with web search capabilities. The chat surface is OpenAI-compatible. Only a representative subset of endpoints is modeled here, drawn from the public Reka documentation at https://docs.reka.ai. See the documentation for the full catalog. ' version: 1.0.0 contact: name: Reka Documentation url: https://docs.reka.ai license: name: Reka Proprietary servers: - url: https://api.reka.ai description: Reka API production server security: - bearerAuth: [] tags: - name: Chat description: Chat completions with the Reka model family. paths: /v1/chat: post: tags: - Chat summary: Create a chat completion description: 'Generate a chat completion from one of the Reka models. Supports multimodal inputs including text, images, video, and audio. ' operationId: createChatCompletion requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChatRequest' responses: '200': description: Chat completion response. content: application/json: schema: $ref: '#/components/schemas/ChatResponse' components: schemas: ChatRequest: type: object required: - model - messages properties: model: type: string description: Model identifier (e.g. reka-core, reka-flash, reka-edge). messages: type: array items: $ref: '#/components/schemas/Message' max_tokens: type: integer temperature: type: number top_p: type: number stream: type: boolean Message: type: object required: - role - content properties: role: type: string enum: - system - user - assistant - tool content: oneOf: - type: string - type: array items: type: object properties: type: type: string enum: - text - image_url - video_url - audio_url text: type: string image_url: type: object properties: url: type: string ChatResponse: type: object properties: id: type: string model: type: string choices: type: array items: type: object properties: index: type: integer message: $ref: '#/components/schemas/Message' finish_reason: type: string usage: type: object properties: prompt_tokens: type: integer completion_tokens: type: integer total_tokens: type: integer securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: REKA_API_KEY description: 'Bearer token issued from the Reka Platform dashboard. Pass as `Authorization: Bearer REKA_API_KEY`. ' externalDocs: description: Reka API documentation url: https://docs.reka.ai