Quick Start
Get up and running quickly by making your first Agent Payment to a Monetized API call using Skyfire.
Getting Started
- Step 1: Create a Skyfire account
Follow these steps to get started with Skyfire:
- Go to app.skyfire.xyz
- Put in your email address
- Click the log in link sent to your email
The emailed link will take you directly to your Dashboard. Your wallet will be pre-funded to help you explore the platform.
- Step 2: Get your Skyfire API Key
Within the Skyfire Dashboard, navigate to API Key and click create your API Key. You'll use this API Key below.
Initialize the Skyfire SDK
- Step 1: Install the Skyfire SDK
npm install @skyfire-xyz/skyfire-sdk
- Step 2: Initialize the Skyfire SDK
import { SkyfireClient } from '@skyfire-xyz/skyfire-sdk'
const skyfire = new SkyfireClient({
apiKey: 'YOUR_API_KEY'
})
First programmatic payment
- Step 3: Call a Monetized API. Below you will pay an LLM on demand for access:
// Make a request to a skyfire api
const res = client.chat
.createOpenAIChatCompletion({
messages: [{ content: "tell me a joke about cats", role: "user" }],
model: "gpt-4o",
})
Updated 3 months ago