Docs
GPTS GIZMO API

GPTS Gizmo API

The GPTS Gizmo API allows users to automate ChatGPT's thousands of GPTs with standard OPENAI completions api call.
Only public gpts can be used in this endpoint.
File upload/download and 3rd party authorization is not available for this api.

Pricing

The GPTS Gizmo API has a token based pricing with minimum charges, see pricing details.


How to get Gizmo model name

Go to ChatGPT official website, explore the GPTs and enter chat with the GPT of your choice, you will see webpage address like https://chatgpt.com/g/g-gFt1ghYJl-logo-creator (opens in a new tab). Then the model name you should use is gpt-4-gizmo-g-gFt1ghYJl.


GPTS GIZMO API

POST

https://api.goapi.ai/v1/chat/completions

Creates a model response for the given chat conversation.

Parameters:

Header
NameTypeRequiredDescription
Authorizationstring✔️Your GoAPI Key used for request authorization
Body
NameTypeRequiredDescription
modelstring✔️ID of the model to use, start with gpt-4-gizmo-g-*
messagesarray✔️A list of messages comprising the conversation so far
streambooleanDefaults to false. If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data:[none] message

Response Codes:

200: OK
Successful Response
400: Bad Request
The request format does not meet the requirements.
401: Unauthorized
The API key is incorrect
500: Internal Server Error
Service is experiencing an error

Request Example (cURL)

curl --location --request POST 'https://api.goapi.ai/v1/chat/completions' --header 'Content-Type: application/json' --header 'Authorization: Bearer YOUR_API_KEY' --data-raw '{
    "model": "gpt-4-gizmo-g-pmuQfob8d",
    "messages": [
        {
            "role": "user",
            "content": "red hair girl"
        }
    ]
}'

Response Example

{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "{
  "size": "1024x1024",
  "prompt": "A girl with long, flowing red hair. She has vibrant red locks cascading down her back, with a few strands blowing gently in the wind. Her hair is rich and shiny, contrasting beautifully against her pale skin. The background is simple, focusing on her radiant hair, and her expression is serene, with soft natural lighting highlighting her face."
}![image](https://files.oaiusercontent.com/file-12345-4753-8ba0-8c24a9439564.webp)
Here is the image of a girl with long, flowing red hair. Let me know if you'd like to adjust any details!",
                "role": "assistant"
            }
        }
    ],
    "created": 1726205460,
    "id": "chatcmpl-1726205460587259321",
    "model": "gpt-4-gizmo-g-pmuQfob8d",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 277,
        "prompt_tokens": 8,
        "total_tokens": 285
    }
}