List the models of every generation operation
curl --request GET \
--url https://myunite.ai/api/v1/create/models \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://myunite.ai/api/v1/create/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://myunite.ai/api/v1/create/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"models": [
{
"id": "<string>",
"name": "<string>",
"mediaType": "image",
"bestFor": "<string>",
"default": true,
"options": {},
"mediaRoles": [
{
"param": "<string>",
"kind": "image",
"max": 0
}
],
"combinations": [
"<string>"
],
"pricing": {
"unit": "image",
"minCredits": 123,
"maxCredits": 123,
"basis": "<string>"
},
"operation": "image"
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}Create
List the models of every generation operation
Lists the models of every operation of POST /create/generations, or of one with operation: each one’s id, name, operation, best use, default, field values, media and how many, what does not combine, and typical credits per image, second or track, with their basis. ad_adaptation and motion have one model each, which runs without a model field. The exact price comes from POST /create/generations with estimateOnly. Free. The workspace must have generation enabled (public_create): otherwise 403 feature_not_enabled.
Requires the create:read scope.
GET
/
create
/
models
List the models of every generation operation
curl --request GET \
--url https://myunite.ai/api/v1/create/models \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://myunite.ai/api/v1/create/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://myunite.ai/api/v1/create/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"models": [
{
"id": "<string>",
"name": "<string>",
"mediaType": "image",
"bestFor": "<string>",
"default": true,
"options": {},
"mediaRoles": [
{
"param": "<string>",
"kind": "image",
"max": 0
}
],
"combinations": [
"<string>"
],
"pricing": {
"unit": "image",
"minCredits": 123,
"maxCredits": 123,
"basis": "<string>"
},
"operation": "image"
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>",
"requestId": "<string>",
"docUrl": "<string>",
"param": "<string>"
}
}Autorizações
Parâmetros de consulta
Esta página foi útil?