LLM Chat Completion

Use Skyfire to programmatically access LLMs demand. This section will illustrate how you can pay on demand to access hundreds of LLMs with a single integration.

Skyfire allows your Agents accessLLM models on demand, without subscriptions or pre-funded accounts. Use the following guide to quickly get your agent up and running with access.

Chat Completions Seq

Integrate Skyfire API

  • Step 1: Install the Skyfire SDK
npm install @skyfire-xyz/skyfire-sdk

  • Step 2: Initialize the SDK
import { SkyfireClient } from '@skyfire-xyz/skyfire-sdk'
const skyfire = new SkyfireClient({
  apiKey: 'YOUR_API_KEY'
})

  • Step 3: Call a monetized LLM Chat Completion endpoint
// 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",   
  })

Additional Chat Completion Endpoints

// Make a request to a skyfire api
const res = client.chat
  .createOpenRouterChatCompletion({
    messages: [{ content: "tell me a joke about cats", role: "user" }],
    model: "anthropic/claude-3.5-sonnet:beta",   
  })
// Make a request to a skyfire api
const res = client.chat
  .createPerplexityChatCompletion({
    messages: [{ content: "tell me a joke about cats", role: "user" }],
    model: "llama-3.1-sonar-small-128k-online",   
  })

Available LLMs for instant access with Skyfire payments:

NameModelProvider
Fluently XLfluently-xlVenice AI
Flux Devflux-devVenice AI
Flux Dev Uncensoredflux-dev-uncensoredVenice AI
Nous Theta 8Bnous-theta-8bVenice AI
Llama 3.2 3Bllama-3.2-3bVenice AI
Dolphin 2.9.2 Qwen2 72Bdolphin-2.9.2-qwen2-72bVenice AI
Llama 3.1 405Bllama-3.1-405bVenice AI
Qwen 32Bqwen32bVenice AI
01.AI: Yi Large01-ai/yi-largeOpenRouter
AI21: Jamba 1.5 Largeai21/jamba-1-5-largeOpenRouter
AI21: Jamba 1.5 Miniai21/jamba-1-5-miniOpenRouter
AI21: Jamba Instructai21/jamba-instructOpenRouter
Anthropic: Claude 3 Haikuanthropic/claude-3-haikuOpenRouter
Anthropic: Claude 3 Haiku (self-moderated)anthropic/claude-3-haiku:betaOpenRouter
Anthropic: Claude 3 Opusanthropic/claude-3-opusOpenRouter
Anthropic: Claude 3 Opus (self-moderated)anthropic/claude-3-opus:betaOpenRouter
Anthropic: Claude 3 Sonnetanthropic/claude-3-sonnetOpenRouter
Anthropic: Claude 3 Sonnet (self-moderated)anthropic/claude-3-sonnet:betaOpenRouter
Anthropic: Claude 3.5 Haikuanthropic/claude-3.5-haikuOpenRouter
Anthropic: Claude 3.5 Haiku (2024-10-22)anthropic/claude-3.5-haiku-20241022OpenRouter
Anthropic: Claude 3.5 Haiku (2024-10-22) (self-moderated)anthropic/claude-3.5-haiku-20241022:betaOpenRouter
Anthropic: Claude 3.5 Haiku (self-moderated)anthropic/claude-3.5-haiku:betaOpenRouter
Anthropic: Claude 3.5 Sonnetanthropic/claude-3.5-sonnetOpenRouter
Anthropic: Claude 3.5 Sonnet (2024-06-20)anthropic/claude-3.5-sonnet-20240620OpenRouter
Anthropic: Claude 3.5 Sonnet (2024-06-20) (self-moderated)anthropic/claude-3.5-sonnet-20240620:betaOpenRouter
Anthropic: Claude 3.5 Sonnet (self-moderated)anthropic/claude-3.5-sonnet:betaOpenRouter
Cohere: Commandcohere/commandOpenRouter
Cohere: Command Rcohere/command-rOpenRouter
Cohere: Command R (03-2024)cohere/command-r-03-2024OpenRouter
Cohere: Command R (08-2024)cohere/command-r-08-2024OpenRouter
Cohere: Command R+cohere/command-r-plusOpenRouter
Cohere: Command R+ (04-2024)cohere/command-r-plus-04-2024OpenRouter
Cohere: Command R+ (08-2024)cohere/command-r-plus-08-2024OpenRouter
Databricks: DBRX 132B Instructdatabricks/dbrx-instructOpenRouter
DeepSeek V2.5deepseek/deepseek-chatOpenRouter
Dolphin 2.6 Mixtral 8x7B 🐬cognitivecomputations/dolphin-mixtral-8x7bOpenRouter
Dolphin 2.9.2 Mixtral 8x22B 🐬cognitivecomputations/dolphin-mixtral-8x22bOpenRouter
EVA Qwen2.5 72Beva-unit-01/eva-qwen-2.5-72bOpenRouter
Google: Gemini 1.5 Flash-8Bgoogle/gemini-flash-1.5-8bOpenRouter
Google: Gemini Experimental 1114 (free)google/gemini-exp-1114:freeOpenRouter
Google: Gemini Experimental 1121 (free)google/gemini-exp-1121:freeOpenRouter
Google: Gemini Flash 1.5google/gemini-flash-1.5OpenRouter
Google: Gemini Flash 1.5 Experimentalgoogle/gemini-flash-1.5-expOpenRouter
Google: Gemini Flash 8B 1.5 Experimentalgoogle/gemini-flash-1.5-8b-expOpenRouter
Google: Gemini Pro 1.0google/gemini-proOpenRouter
Google: Gemini Pro 1.5google/gemini-pro-1.5OpenRouter
Google: Gemini Pro 1.5 Experimentalgoogle/gemini-pro-1.5-expOpenRouter
Google: Gemini Pro Ablation-001google/gemini-pro-ablation-001OpenRouter
Google: Gemini Pro Ablation-002google/gemini-pro-ablation-002OpenRouter
Google: Gemini Pro Ablation-003google/gemini-pro-ablation-003OpenRouter
Google: Gemini Pro Ablation-004google/gemini-pro-ablation-004OpenRouter
Google: Gemini Pro Ablation-005google/gemini-pro-ablation-005OpenRouter
Google: Gemini Pro Ablation-006google/gemini-pro-ablation-006OpenRouter
Google: Gemini Pro Ablation-007google/gemini-pro-ablation-007OpenRouter
Google: Gemini Pro Ablation-008google/gemini-pro-ablation-008OpenRouter
Google: Gemini Pro Ablation-009google/gemini-pro-ablation-009OpenRouter
Google: Gemini Pro Ablation-010google/gemini-pro-ablation-010OpenRouter
Google: Gemini Pro Ablation-011google/gemini-pro-ablation-011OpenRouter
Google: Gemini Pro Ablation-012google/gemini-pro-ablation-012OpenRouter
Google: Gemini Pro Ablation-013google/gemini-pro-ablation-013OpenRouter
Google: Gemini Pro Ablation-014google/gemini-pro-ablation-014OpenRouter
Google: Gemini Pro Ablation-015google/gemini-pro-ablation-015OpenRouter
Google: Gemini Pro Ablation-016google/gemini-pro-ablation-016OpenRouter
Google: Gemini Pro Ablation-017google/gemini-pro-ablation-017OpenRouter
Google: Gemini Pro Ablation-018google/gemini-pro-ablation-018OpenRouter
Google: Gemini Pro Ablation-019google/gemini-pro-ablation-019OpenRouter
Google: Gemini Pro Ablation-020google/gemini-pro-ablation-020OpenRouter
Google: Gemini Pro Ablation-021google/gemini-pro-ablation-021OpenRouter
Google: Gemini Pro Ablation-022google/gemini-pro-ablation-022OpenRouter
Google: Gemini Pro Ablation-023google/gemini-pro-ablation-023OpenRouter
Google: Gemini Pro Ablation-024google/gemini-pro-ablation-024OpenRouter
Google: Gemini Pro Ablation-025google/gemini-pro-ablation-025OpenRouter
Google: Gemini Pro Ablation-026google/gemini-pro-ablation-026OpenRouter
Google: Gemini Pro Ablation-027google/gemini-pro-ablation-027OpenRouter
Google: Gemini Pro Ablation-028google/gemini-pro-ablation-028OpenRouter
Google: Gemini Pro Ablation-029google/gemini-pro-ablation-029OpenRouter
Google: Gemini Pro Ablation-030google/gemini-pro-ablation-030OpenRouter
Google: Gemini Pro Ablation-031google/gemini-pro-ablation-031OpenRouter
Google: Gemini Pro Ablation-032google/gemini-pro-ablation-032OpenRouter
Google: Gemini Pro Ablation-033google/gemini-pro-ablation-033OpenRouter
Google: Gemini Pro Ablation-034google/gemini-pro-ablation-034OpenRouter
Google: Gemini Pro Ablation-035google/gemini-pro-ablation-035OpenRouter
Google: Gemini Pro Ablation-036google/gemini-pro-ablation-036OpenRouter
Google: Gemini Pro Ablation-037google/gemini-pro-ablation-037OpenRouter
Google: Gemini Pro Ablation-038google/gemini-pro-ablation-038OpenRouter
Google: Gemini Pro Ablation-039google/gemini-pro-ablation-039OpenRouter
Google: Gemini Pro Ablation-040google/gemini-pro-ablation-040OpenRouter
Google: Gemini Pro Ablation-041google/gemini-pro-ablation-041OpenRouter
Google: Gemini Pro Ablation-042google/gemini-pro-ablation-042OpenRouter
Google: Gemini Pro Ablation-043google/gemini-pro-ablation-043OpenRouter
Google: Gemini Pro Ablation-044google/gemini-pro-ablation-044OpenRouter
Google: Gemini Pro Ablation-045google/gemini-pro-ablation-045OpenRouter
Google: Gemini Pro Ablation-046google/gemini-pro-ablation-046OpenRouter
Google: Gemini Pro Ablation-047google/gemini-pro-ablation-047OpenRouter
Google: Gemini Pro Ablation-048google/gemini-pro-ablation-048OpenRouter
Google: Gemini Pro Ablation-049google/gemini-pro-ablation-049OpenRouter
Google: Gemini Pro Ablation-050google/gemini-pro-ablation-050OpenRouter
Google: Gemini Pro Experimentalgoogle/gemini-pro-expOpenRouter
Google: Gemini Pro Vision 1.0google/gemini-pro-visionOpenRouter
Google: Gemini Pro Vision Experimentalgoogle/gemini-pro-vision-expOpenRouter
Google: Gemma 2 27Bgoogle/gemma-2-27b-itOpenRouter
Google: Gemma 2 9Bgoogle/gemma-2-9b-itOpenRouter
Google: Gemma 2 9B (free)google/gemma-2-9b-it:freeOpenRouter
Google: LearnLM 1.5 Pro Experimental (free)google/learnlm-1.5-pro-experimental:freeOpenRouter
Inflection: Inflection 3 Piinflection/inflection-3-piOpenRouter
Inflection: Inflection 3 Productivityinflection/inflection-3-productivityOpenRouter
Liquid: LFM 40B MoEliquid/lfm-40bOpenRouter
Liquid: LFM 40B MoE (free)liquid/lfm-40b:freeOpenRouter
Llama 3 Euryale 70B v2.1sao10k/l3-euryale-70bOpenRouter
Llama 3 Lumimaid 70Bneversleep/llama-3-lumimaid-70bOpenRouter
Llama 3 Lumimaid 8Bneversleep/llama-3-lumimaid-8bOpenRouter
Llama 3 Lumimaid 8B (extended)neversleep/llama-3-lumimaid-8b:extendedOpenRouter
Llama 3.1 Euryale 70B v2.2sao10k/l3.1-euryale-70bOpenRouter
Lumimaid v0.2 70Bneversleep/llama-3.1-lumimaid-70bOpenRouter
Lumimaid v0.2 8Bneversleep/llama-3.1-lumimaid-8bOpenRouter
Magnum 72Balpindale/magnum-72bOpenRouter
Magnum v4 72Banthracite-org/magnum-v4-72bOpenRouter
Meta: Llama 3 70B Instructmeta-llama/llama-3-70b-instructOpenRouter
Meta: Llama 3 70B Instruct (nitro)meta-llama/llama-3-70b-instruct:nitroOpenRouter
Meta: Llama 3 8B Instructmeta-llama/llama-3-8b-instructOpenRouter
Meta: Llama 3 8B Instruct (extended)meta-llama/llama-3-8b-instruct:extendedOpenRouter
Meta: Llama 3 8B Instruct (free)meta-llama/llama-3-8b-instruct:freeOpenRouter
Meta: Llama 3 8B Instruct (nitro)meta-llama/llama-3-8b-instruct:nitroOpenRouter
Meta: Llama 3.1 405B (base)meta-llama/llama-3.1-405bOpenRouter
Meta: Llama 3.1 405B Instructmeta-llama/llama-3.1-405b-instructOpenRouter
Meta: Llama 3.1 405B Instruct (free)meta-llama/llama-3.1-405b-instruct:freeOpenRouter
Meta: Llama 3.1 405B Instruct (nitro)meta-llama/llama-3.1-405b-instruct:nitroOpenRouter
Meta: Llama 3.1 70B Instructmeta-llama/llama-3.1-70b-instructOpenRouter
Meta: Llama 3.1 70B Instruct (free)meta-llama/llama-3.1-70b-instruct:freeOpenRouter
Meta: Llama 3.1 70B Instruct (nitro)meta-llama/llama-3.1-70b-instruct:nitroOpenRouter
Meta: Llama 3.1 8B Instructmeta-llama/llama-3.1-8b-instructOpenRouter
Meta: Llama 3.1 8B Instruct (free)meta-llama/llama-3.1-8b-instruct:freeOpenRouter
Meta: Llama 3.2 11B Vision Instructmeta-llama/llama-3.2-11b-vision-instructOpenRouter
Meta: Llama 3.2 11B Vision Instruct (free)meta-llama/llama-3.2-11b-vision-instruct:freeOpenRouter
Meta: Llama 3.2 1B Instructmeta-llama/llama-3.2-1b-instructOpenRouter
Meta: Llama 3.2 1B Instruct (free)meta-llama/llama-3.2-1b-instruct:freeOpenRouter
Meta: Llama 3.2 3B Instructmeta-llama/llama-3.2-3b-instructOpenRouter
Meta: Llama 3.2 3B Instruct (free)meta-llama/llama-3.2-3b-instruct:freeOpenRouter
Meta: Llama 3.2 90B Vision Instructmeta-llama/llama-3.2-90b-vision-instructOpenRouter
Meta: Llama 3.2 90B Vision Instruct (free)meta-llama/llama-3.2-90b-vision-instruct:freeOpenRouter
Meta: LlamaGuard 2 8Bmeta-llama/llama-guard-2-8bOpenRouter
Midnight Rose 70Bsophosympatheia/midnight-rose-70bOpenRouter
Ministral 3Bmistralai/ministral-3bOpenRouter
Ministral 8Bmistralai/ministral-8bOpenRouter
Mistral Largemistralai/mistral-largeOpenRouter
Mistral Large 2407mistralai/mistral-large-2407OpenRouter
Mistral Large 2411mistralai/mistral-large-2411OpenRouter
Mistral Mediummistralai/mistral-mediumOpenRouter
Mistral Nemo Inferor 12Binfermatic/mn-inferor-12bOpenRouter
Mistral Smallmistralai/mistral-smallOpenRouter
Mistral Tinymistralai/mistral-tinyOpenRouter
Mistral: Codestral Mambamistralai/codestral-mambaOpenRouter
Mistral: Mistral 7B Instructmistralai/mistral-7b-instructOpenRouter
Mistral: Mistral 7B Instruct (free)mistralai/mistral-7b-instruct:freeOpenRouter
Mistral: Mistral 7B Instruct (nitro)mistralai/mistral-7b-instruct:nitroOpenRouter
Mistral: Mistral 7B Instruct v0.1mistralai/mistral-7b-instruct-v0.1OpenRouter
Mistral: Mistral 7B Instruct v0.1 (free)mistralai/mistral-7b-instruct-v0.1:freeOpenRouter
Mistral: Mistral 7B Instruct v0.2mistralai/mistral-7b-instruct-v0.2OpenRouter
Mistral: Mistral 7B Instruct v0.3mistralai/mistral-7b-instruct-v0.3OpenRouter
Mistral: Mistral Nemomistralai/mistral-nemoOpenRouter
Mistral: Mixtral 8x22B Instructmistralai/mixtral-8x22b-instructOpenRouter
Mistral: Pixtral 12Bmistralai/pixtral-12bOpenRouter
Mistral: Pixtral Large 2411mistralai/pixtral-large-2411OpenRouter
Mixtral 8x7Bmistralai/mixtral-8x7bOpenRouter
Mixtral 8x7B Instructmistralai/mixtral-8x7b-instructOpenRouter
Mixtral 8x7B Instruct (nitro)mistralai/mixtral-8x7b-instruct:nitroOpenRouter
Nous: Hermes 2 Mixtral 8x7B DPOnousresearch/nous-hermes-2-mixtral-8x7b-dpoOpenRouter
Nous: Hermes 3 405B Instructnousresearch/hermes-3-llama-3.1-405bOpenRouter
Nous: Hermes 3 405B Instruct (free)nousresearch/hermes-3-llama-3.1-405b:freeOpenRouter
Nous: Hermes 3 70B Instructnousresearch/hermes-3-llama-3.1-70bOpenRouter
NousResearch: Hermes 2 Pro - Llama-3 8Bnousresearch/hermes-2-pro-llama-3-8bOpenRouter
NVIDIA: Llama 3.1 Nemotron 70B Instructnvidia/llama-3.1-nemotron-70b-instructOpenRouter
OpenAI: ChatGPT-4oopenai/chatgpt-4o-latestOpenRouter
OpenAI: GPT-3.5 Turbo (older v0613)openai/gpt-3.5-turbo-0613OpenRouter
OpenAI: GPT-4 Turboopenai/gpt-4-turboOpenRouter
OpenAI: GPT-4 Turbo Previewopenai/gpt-4-turbo-previewOpenRouter
OpenAI: GPT-4oopenai/gpt-4oOpenRouter
OpenAI: GPT-4o (2024-05-13)openai/gpt-4o-2024-05-13OpenRouter
OpenAI: GPT-4o (2024-08-06)openai/gpt-4o-2024-08-06OpenRouter
OpenAI: GPT-4o (2024-11-20)openai/gpt-4o-2024-11-20OpenRouter
OpenAI: GPT-4o (extended)openai/gpt-4o:extendedOpenRouter
OpenAI: GPT-4o-miniopenai/gpt-4o-miniOpenRouter
OpenAI: GPT-4o-mini (2024-07-18)openai/gpt-4o-mini-2024-07-18OpenRouter
OpenAI: o1-miniopenai/o1-miniOpenRouter
OpenAI: o1-mini (2024-09-12)openai/o1-mini-2024-09-12OpenRouter
OpenAI: o1-previewopenai/o1-previewOpenRouter
OpenAI: o1-preview (2024-09-12)openai/o1-preview-2024-09-12OpenRouter
Perplexity: Llama 3.1 Sonar 405B Onlineperplexity/llama-3.1-sonar-huge-128k-onlineOpenRouter
Perplexity: Llama 3.1 Sonar 70Bperplexity/llama-3.1-sonar-large-128k-chatOpenRouter
Perplexity: Llama 3.1 Sonar 70B Onlineperplexity/llama-3.1-sonar-large-128k-onlineOpenRouter
Perplexity: Llama 3.1 Sonar 8Bperplexity/llama-3.1-sonar-small-128k-chatOpenRouter
Perplexity: Llama 3.1 Sonar 8B Onlineperplexity/llama-3.1-sonar-small-128k-onlineOpenRouter
Perplexity: Llama3 Sonar 70Bperplexity/llama-3-sonar-large-32k-chatOpenRouter
Perplexity: Llama3 Sonar 70B Onlineperplexity/llama-3-sonar-large-32k-onlineOpenRouter
Perplexity: Llama3 Sonar 8Bperplexity/llama-3-sonar-small-32k-chatOpenRouter
Phi-3 Medium 128K Instructmicrosoft/phi-3-medium-128k-instructOpenRouter
Phi-3 Medium 128K Instruct (free)microsoft/phi-3-medium-128k-instruct:freeOpenRouter
Phi-3 Mini 128K Instructmicrosoft/phi-3-mini-128k-instructOpenRouter
Phi-3 Mini 128K Instruct (free)microsoft/phi-3-mini-128k-instruct:freeOpenRouter
Phi-3.5 Mini 128K Instructmicrosoft/phi-3.5-mini-128k-instructOpenRouter
Qwen 2 72B Instructqwen/qwen-2-72b-instructOpenRouter
Qwen 2 7B Instructqwen/qwen-2-7b-instructOpenRouter
Qwen 2 7B Instruct (free)qwen/qwen-2-7b-instruct:freeOpenRouter
Qwen2-VL 72B Instructqwen/qwen-2-vl-72b-instructOpenRouter
Qwen2-VL 7B Instructqwen/qwen-2-vl-7b-instructOpenRouter
Qwen2.5 72B Instructqwen/qwen-2.5-72b-instructOpenRouter
Qwen2.5 7B Instructqwen/qwen-2.5-7b-instructOpenRouter
Qwen2.5 Coder 32B Instructqwen/qwen-2.5-coder-32b-instructOpenRouter
Rocinante 12Bthedrummer/rocinante-12bOpenRouter
SorcererLM 8x22Braifle/sorcererlm-8x22bOpenRouter
Stable Diffusion XL Base v0.9stabilityai/stable-diffusion-xl-base-0.9OpenRouter
Stable Diffusion XL v0.9stabilityai/stable-diffusion-xl-v0.9OpenRouter
Unslopnemo 12bthedrummer/unslopnemo-12bOpenRouter
WizardLM-2 7Bmicrosoft/wizardlm-2-7bOpenRouter
WizardLM-2 8x22Bmicrosoft/wizardlm-2-8x22bOpenRouter
xAI: Grok 2x-ai/grok-2OpenRouter
xAI: Grok Betax-ai/grok-betaOpenRouter
xAI: Grok Vision Betax-ai/grok-vision-betaOpenRouter
Zephyr 7B Alphazephyr-ai/zephyr-7b-alphaOpenRouter
Zephyr 7B Betazephyr-ai/zephyr-7b-betaOpenRouter

What’s Next