List models
curl --request GET \
--url https://api.f13.com/v1/models \
--header 'Authorization: <authorization>'import requests
url = "https://api.f13.com/v1/models"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.f13.com/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.f13.com/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.f13.com/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.f13.com/v1/models")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.f13.com/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"default": true,
"capabilities": {
"outputs": [
"<string>"
],
"referenceImages": 123,
"edits": true,
"drawingOptions": true,
"accent": true,
"grounding": true,
"language": true,
"freeform": true,
"imageWithoutPrompt": true,
"maxPromptChars": {}
}
}API reference
List models
Lists the models this workspace can generate with, in the OpenAI list shape. Name one as model on a generation to run that request on it.
GET
/
v1
/
models
List models
curl --request GET \
--url https://api.f13.com/v1/models \
--header 'Authorization: <authorization>'import requests
url = "https://api.f13.com/v1/models"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.f13.com/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.f13.com/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.f13.com/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.f13.com/v1/models")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.f13.com/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"default": true,
"capabilities": {
"outputs": [
"<string>"
],
"referenceImages": 123,
"edits": true,
"drawingOptions": true,
"accent": true,
"grounding": true,
"language": true,
"freeform": true,
"imageWithoutPrompt": true,
"maxPromptChars": {}
}
}Headers
Bearer f13_sk_live_… - see Authentication.Response
200 with a list of the models the workspace can use right now. A model
that is switched off, or that the workspace has no access to, is not
listed, and a generation naming it is refused with 403.
{
"object": "list",
"data": [
{
"id": "f13-illustrative",
"object": "model",
"created": 1793318400,
"owned_by": "f13",
"name": "f13 illustrative",
"default": true,
"capabilities": {
"outputs": ["vector", "image"],
"referenceImages": 1,
"edits": false,
"drawingOptions": true,
"accent": false,
"grounding": false,
"language": false,
"freeform": false,
"imageWithoutPrompt": true,
"maxPromptChars": null
}
}
]
}
What to send as
model on Create generation.true for the model generations run on when they name none. At most one
model is marked. When none is, a request without model runs on the
platform’s standard model, which has no id to name.What a request on this model may carry. Anything else is refused before
charging.
Show fields
Show fields
The
output values it takes: vector, and image on models that
also render the photo. A vector-only model lists ["vector"] and
refuses output: "image" with 400 before charging.Whether it takes
accent, the color it draws the accent in, and
options, how a diagram
is presented and what question it poses.Whether it takes
grounding as a mode: "off", "on" (look up real
figures on the web first) or "auto" (the model decides). The
true/false form belongs to drawingOptions.Whether it takes
language, the language its drawing’s words are
written in, as a BCP 47 tag. The model keeps the list of languages it
draws in and names them when it refuses one.Whether it takes
freeform. With freeform: true it may also draw a
picture of one real thing, traced from a photo of it, and its
output: "image" needs freeform: true.