API Requests and Parameters

API Requests and Parameters Overview for StealthGPT

This page provides an overview of the API requests and parameters used when interacting with the StealthGPT API. Understanding the API endpoint, headers, body parameters, and now the expanded schema will help you create effective requests and utilize the full potential of the StealthGPT API.

API Endpoint

The API endpoint is the URL to which you'll send requests for content generation or rephrasing:

  • Request Type: POST

  • URL: https://stealthgpt.ai/api/stealthify

Headers

When making a request to the StealthGPT API, you'll need to include specific headers to ensure proper formatting and authentication:

  • api-token: Your unique API token, used for authenticating requests. Replace {API TOKEN} with the token you received after your initial purchase.

  • Content-Type: This header must be set to application/json to ensure the request body is formatted correctly.

Body Parameters

The body of your API request should now include the following parameters to accurately define your request:

  • prompt (required)

    • Type: string

    • Description: The prompt to be used as the basis for content generation, or the content to be rephrased. Replace <PROMPT> with your desired prompt or content.

  • rephrase (required)

    • Type: boolean

    • Description: A boolean value (true or false) that indicates whether the API should rephrase the content or generate new content based on the prompt. Set to true for rephrasing and false for content generation.

  • tone (optional)

    • Type: string

    • Description: Specifies the desired tone for the response. For example, "Casual", "Academic", etc.

  • mode (optional)

    • Type: string

    • Description: Indicates the detail level of the response: "High", "Medium", or "Low".

  • business (optional)

    • Type: boolean

    • Description: A boolean flag to indicate if the request is related to a business context. Setting this to true uses a model 10x more powerful than the standard StealthGPT engine, making the content far more undetectable and coherent but also consuming more tokens.

Example API Request

An example API request using CURL is shown below, incorporating the new parameters:

curl --location 'https://stealthgpt.ai/api/stealthify' \
    --header 'api-token: {API TOKEN}' \
    --header 'Content-Type: application/json' \
    --data '{
        "prompt": "<PROMPT>",
        "rephrase": <TRUE/FALSE>,
        "tone": "<TONE>",
        "mode": "<MODE>",
        "business": <TRUE/FALSE>
    }'

Make sure to replace {API TOKEN}, <PROMPT>, <TRUE/FALSE>, <TONE>, <MODE>, and the appropriate boolean value for the rephrase and business parameters with your actual API token, desired prompt or content, rephrase option, desired tone, mode, and business context flag.

Understanding Business Mode

Business Mode: When the business parameter is set to true, the request uses a model 10x more powerful than the standard StealthGPT engine. This mode provides content that is far more undetectable and coherent compared to the standard mode. However, it also consumes more tokens, reflecting the increased computational resources required.

New Undetectable AI SEO Writer Endpoint

curl --request POST \
  --url https://stealthgpt.ai/api/stealthify/articles \
  --header 'Content-Type: application/json' \
  --header 'api-token: {API TOKEN}' \
  --data '{
  "prompt": "tell me something about modern backend architecture",
  "withImages": true,
  "size": "medium"
}'

Replace {API TOKEN} with your actual API token.

Parameter Descriptions for /stealthify/articles Endpoint

  • prompt: The input text or question for which you want the StealthGPT to generate content.

  • withImages: (Optional) A boolean value indicating whether to include images in the generated content. Default is true.

  • size: (Optional) The desired length of the generated article. Can be small, medium, or long. Default is small.

By understanding the details of API requests, including the endpoint, headers, body parameters, and the new expanded schema, you can effectively use the StealthGPT API for content generation and rephrasing. If you encounter any issues or need assistance, please refer to the Error Handling section of the documentation or contact our support team.

Last updated