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 our SDK

For Python, install the Reka Python SDK with pip install "reka-api>=2.0.0".

$pip install "reka-api>=2.0.0"

If you don’t use Python, fret not. We have examples for common programming languages like Javascript, Go, Java, and plain command line code.

Make your first request

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

Next up

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