fx
Contact UsDocs
fx

Managed

AI

Cloud

Experience bleeding-edge Generative AI models with limitless scalability, all powered by our distributed infrastructure.

Use cases

Inference

Power your AI Agents

Focus on your customizing your agent. Leave the hosting and scaling to us.

Inference

Use open source models

Inference

Bring your own private model

Network

Reduce costs

Usecases

Why switch to Function

Save up to 80% on model hosting costs with limitless scalability — no devops needed.

No other platform can give you that.

Llama 3.1 405B Token Cost Comparison

Function

Others

Our API Services

Chat Completion

Powerful conversational models designed to empower agentic workloads, enabling dynamic interactions and automation.

Powerful conversational models designed to empower agentic workloads, enabling dynamic interactions and automation.

Code Completion

Streamline coding with real-time suggestions and auto-completions in your IDE, accelerating development and enhancing efficiency.

Streamline coding with real-time suggestions and auto-completions in your IDE, accelerating development and enhancing efficiency.

Text Embedding

Transform words into vectors that capture their meaning and context, allowing software to better understand, process, and work with text in RAG pipelines.

Transform words into vectors that capture their meaning and context, allowing software to better understand, process, and work with text in RAG pipelines.

Image Generation

Generate captivating AI-driven visuals from textual descriptions using widely used open-source models such as Stable Diffusion.

Generate captivating AI-driven visuals from textual descriptions using widely used open-source models such as Stable Diffusion.

Image Captioning

Generate detailed, descriptive text for images, enabling software to interpret and articulate the content of pictures effectively.

Generate detailed, descriptive text for images, enabling software to interpret and articulate the content of pictures effectively.

Transcription

Convert spoken language into written text, enabling applications to accurately interpret and process human speech.

Convert spoken language into written text, enabling applications to accurately interpret and process human speech.

Broad set of SDKs

Comprehensive first-party SDK support, unparalleled developer experience

Typescript

Typescript

Python

Python

Java

Java

Go

Go

Php

Php

Typescript

Typescript

Python

Python

Java

Java

Go

Go

Php

Php

Libraries

1import os
2import openai
3
4# Init Client
5client = openai.OpenAI(
6  api_key=os.environ.get("FXN_API_KEY"),
7  base_url="https://api.function.network/v1",
8)
9
10# Create a completion request
11response = client.chat.completions.create(
12  model="{MODEL_NAME}",
13  messages=[
14    {
15      "role": "system", 
16      "content": "You are a fitness coach. Provide personalized workout advice."
17    },
18    {
19      "role": "user", 
20      "content": "I want to build muscle but I only have 30 minutes a day to workout. What should I focus on?"
21    }
22  ]
23)
24print(response.choices[0].message.content)
25

Function Chat

Our chat application is powered by distributed inference, offering the latest state of the art LLMs. Free, private, user-owned.

chat-app
chat-app

Scale inference with Function