List models
curl --request GET \
--url https://api.geekidea.ai/v1/modelsimport requests
url = "https://api.geekidea.ai/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.geekidea.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "geekidea/drama-episode",
"object": "workflow",
"name": "Short drama episode",
"description": "<string>",
"version": 1,
"start_path": "/v1/dramas",
"steps": [
{
"key": "storyboard",
"type": "ai",
"depends_on": [
"assets"
],
"confirm": true,
"fee_units": [
"episode"
]
}
],
"fee_price_version": 1,
"fees": [
{
"step": "clips",
"spec": "<string>",
"unit": "second",
"unit_price_usd": 0.025
}
],
"currency": "USD"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true,
"total_count": 123
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}Models
List models
Returns public models with capabilities, modalities and the generation_config parameter schema. Names follow Accept-Language.
GET
/
v1
/
models
List models
curl --request GET \
--url https://api.geekidea.ai/v1/modelsimport requests
url = "https://api.geekidea.ai/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.geekidea.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "geekidea/drama-episode",
"object": "workflow",
"name": "Short drama episode",
"description": "<string>",
"version": 1,
"start_path": "/v1/dramas",
"steps": [
{
"key": "storyboard",
"type": "ai",
"depends_on": [
"assets"
],
"confirm": true,
"fee_units": [
"episode"
]
}
],
"fee_price_version": 1,
"fees": [
{
"step": "clips",
"spec": "<string>",
"unit": "second",
"unit_price_usd": 0.025
}
],
"currency": "USD"
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true,
"total_count": 123
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}Query Parameters
Filter by type: text / image / video / audio
Available options:
text, image, video, audio Response
OK
List (OpenAI format, cursor pagination)
Always list
Example:
"list"
Data
Show child attributes
Show child attributes
ID of the first item
ID of the last item; pass it as after to get the next page
Whether more items are available
Total count (only with include[]=total_count)
