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
Python
Java
Go
Php
Typescript
Python
Java
Go
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
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
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
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
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
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
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