Quickstart

This page shows you the steps needed to get started with the Reka API.

Before you begin

Create a free account on the Reka Platform to access your API key.

Keep your API key secure. Never expose it in client-side code or share it publicly.

Install the SDK

Install the OpenAI Python SDK — our API is fully OpenAI-compatible.

$pip install openai

Make your first request

1from openai import OpenAI
2
3client = OpenAI(
4 base_url="https://api.reka.ai/v1",
5 api_key="YOUR_API_KEY",
6)
7
8response = client.chat.completions.create(
9 model="reka-flash",
10 messages=[
11 {
12 "role": "user",
13 "content": [
14 {"type": "image_url", "image_url": {"url": "https://v0.docs.reka.ai/_images/000000245576.jpg"}},
15 {"type": "text", "text": "What do you like about this image?"}
16 ],
17 }
18 ],
19)
20print(response.choices[0].message.content)

Next up

Explore the Reka API’s capabilities through the following guides: