Skip to content

SDKs Guide

Our API offers official SDKs for popular programming languages to make integration easy and efficient.

Available SDKs

Installation

JavaScript/Node.js

npm install @example/api-client

Python

pip install example-api-client

Go

go get github.com/example/go-sdk

Ruby

gem install example-api-client

Basic Usage

JavaScript Example

const { APIClient } = require('@example/api-client');
const client = new APIClient('your-api-key');
const response = await client.generate({ prompt: 'Hello, world!', model: 'gpt-4' });
console.log(response.content);

Python Example

import api_client
client = api_client.Client('your-api-key')
response = client.generate(prompt='Hello, world!', model='gpt-4')
print(response.content)

Best Practices

  • Always use the latest SDK version.
  • Store your API key securely (use environment variables).
  • Handle errors and rate limits as described in our Best Practices.

More Information


Last update: July 14, 2025
Created: July 14, 2025