Docs
    Docs
    • Introduction
    • Quick Start Guide
    • Make a request
    • YEScale System API Tutorial
    • Chat Models
      • ChatGpt
        • ChatGPT (Audio)
          • Create transcription by gpt-4o-mini-transcribe & gpt-4o-transcribe
          • Create a voice with gpt-4o-mini-tts
          • Create a voice
          • Create a transcript
          • Create translation
        • ChatGPT (Chat)
          • Chat completion object
          • Create chat completion (streaming)
          • Create chat completion (non-streaming)
          • Create chat image recognition (streaming)
          • Create chat image recognition (streaming) base64
          • Create chat image recognition (non-streaming)
          • Function calling
          • N choices
          • Create chat function call (only non-streaming)
          • Create structured output
        • ChatGPT (Completions)
          • Completion object
          • Creation completed
        • ChatGPT(Embeddings)
          • Embedded Object
          • Create embed
      • Anthropic Claude
        • Offical Format
          • Messages (official Anthropic format)
          • Messages(Image Recognition)
          • Messages(function call)
          • Messages(Web search)
        • Create chat completion (streaming)
        • Create chat completion (non-streaming)
        • Create chat image recognition (streaming)
        • Create chat image recognition (non-streaming)
      • Gemini
        • Gemini Image creation interface (gemini-2.0-flash-exp-image-generation)
        • Chat interface
        • Image recognition interface
        • Function calling - Google Search
        • Function calling - codeExecution
    • Image Models
      • GPT-IMAGE-1
        • Generate Image by gpt-image-1
        • Edit Image by gpt-image-1
      • MJ
        • Submit Imagine task (mj_imagine)
        • Submit Blend task (mj_blend)
        • Submit Describe task (mj_describe)
        • Submit Change task (mj_variation, mj_upscale,mj_reroll)
        • Query task status based on task ID
      • Ideogram
        • Generate with Ideogram 3.0
        • Edit with Ideogram 3.0
        • Remix with Ideogram 3.0
        • Ideogram Upscale
      • Kling Image
        • Submit Image Generation
        • Get Image by Task ID
        • Submit Kolors Virtual Try On
        • Get Kolors Virtual Try On by Task ID
      • Flux
        • Flux on Replicate
          • Submit Image by flux-kontext-pro
          • Submit Image by flux-kontext-max
          • Submit Image by flux-pro
          • Get Image by ID
      • Recraft API
        • Recraft Image
        • Generate Image
        • Generate Vector Image
        • Remove Background
        • Clarity Upscale
        • Generative Upscale
      • Models use Dall-e Format
        • Google Imagen
        • Bytedance - seedream-3.0
        • Recraftv3 use Dall-e endpoint
        • Flux use Dall-e endpoint
      • DALL·E 3
        POST
    • Video Models
      • Kling Video
        • Create Video by Text
        • Get Video by Task ID(text2video)
        • Create Video by Image
        • Get Video by Task ID(image2video)
      • Runway ML Video
        • Create Video by Runway
        • Get Video by Task ID
      • Luma Video
        • Create Video by Luma
        • Get Video by Task ID
      • Pika Video
        • Create Video by Pika
        • Get Video by Task ID
      • Google Veo
        • Submit Video Request
        • Submit Video Request with Frames
        • Get Video by ID
      • Minimax - Hailuo
        • Submit Video Request
        • Get Video
      • Seedance
        • Submit Video Request
        • Get Video by Task ID
      • Mj Video
        • Submit Mj Video Request
        • Get Mj Video by task id
    • Music Model - Suno
      • Illustrate
      • Parameter
      • Task submission
        • Generate songs (inspiration, customization, continuation)
        • Generate lyrics
      • Query interface
        • Query a single task
    • Python Samples
      • python openai official library (using AutoGPT, langchain, etc.)
      • Python uses speech to text
      • Python uses text to speech
      • Python uses Embeddings
      • python calls DALL·E
      • python simple call openai function-calling demo
      • python langchain
      • python llama_index
      • Python uses gpt-4o to identify pictures-local pictures
      • python library streaming output
      • Python uses gpt-4o to identify images
    • Plug-in/software usage tutorials
      • Setting HTTP for Make.com with Yescale
      • Sample Code for gpt-4o-audio/gpt-4o-mini-audio
    • Help Center
      • HTTP status codes
    • Tutorials
      • GPT-Image-1 API: A Step-by-Step Guide With Examples
      • Claude Code via YEScale API

    YEScale System API Tutorial

    This tutorial will guide you through the process of integrating with the YEScale System API. You will learn how to retrieve user information, manage your API keys, track your tasks, and access system logs.
    Base URL: https://yescale.bogia.app

    Table of Contents#

    1.
    Prerequisites
    2.
    Authentication
    3.
    API Endpoints
    3.1 Get User Information
    3.2 List API Keys
    3.3 List Tasks
    3.4 Get Logs

    1. Prerequisites#

    Before you begin, ensure you have the following:
    Access Key: Obtain your unique Access Key from your YEScale account's home page. This key is essential for authenticating your API requests.

    2. Authentication#

    All requests to the YEScale System API require authentication. You must include your Access Key in the Authorization header for most endpoints.
    Header Format:
    Authorization: Bearer ACCESS_KEY
    Replace ACCESS_KEY with your actual Access Key.

    3. API Endpoints#

    The following sections detail the available API endpoints and how to use them.

    3.1 Get User Information#

    Retrieve detailed information about your YEScale user account.
    Endpoint: /yescale/user
    Method: GET
    Headers:
    Authorization: Bearer ACCESS_KEY (Replace ACCESS_KEY)
    Example Request:
    Example Response:
    {
        "data": {
            "access_token": "XXXXX",
            "display_name": "Your Display Name",
            "email": "your.email@example.com",
            "quota": 8664402091,
            "request_count": 213527,
            "role": 1,
            "telegram_id": "",
            "used_quota": 1460014143,
            "username": "your_username"
        },
        "message": "",
        "success": true
    }
    Response Field Descriptions:
    quota: Your remaining credits. To convert to USD, divide by 500,000.
    used_quota: Your consumed credits. To convert to USD, divide by 500,000.
    Other fields provide user profile and account details.

    3.2 List API Keys#

    Fetch a list of all API keys associated with your YEScale account.
    Endpoint: /yescale/apikeylist
    Method: GET
    Query Parameters:
    keyword (optional): A string to filter API keys by.
    token (optional): A specific token to filter by.
    Headers:
    Authorization: Bearer ACCESS_KEY (Replace ACCESS_KEY)
    Example Request:
    Example Response:
    (The response will be a JSON array of API key objects, typically including the key itself and its properties.)

    3.3 List Tasks#

    Retrieve a list of tasks executed by your account, with options to filter by time.
    Endpoint: /yescale/task
    Method: GET
    Query Parameters:
    start_timestamp (required): The Unix timestamp marking the beginning of the time range.
    end_timestamp (required): The Unix timestamp marking the end of the time range.
    Headers:
    Authorization: Bearer ACCESS_KEY (Replace ACCESS_KEY)
    Example Request:

    3.4 Get Logs#

    Access system logs related to your API usage. You can filter logs by various parameters, including time ranges.
    Endpoint: /yescale/logs
    Method: GET
    Query Parameters:
    p (optional): Page number for pagination. Defaults to 1.
    page_size (optional): Number of items per page. Defaults to 10000.
    type (optional): Type of logs to retrieve (e.g., 2).
    token_name (optional): Filter logs by a specific token name.
    model_name (optional): Filter logs by a specific model name.
    username (optional): Filter logs by username.
    start_timestamp (optional): The Unix timestamp marking the beginning of the time range for logs.
    end_timestamp (optional): The Unix timestamp marking the end of the time range for logs.
    Headers:
    Authorization: Bearer ACCESS_KEY (Replace ACCESS_KEY)
    Example Request:

    This tutorial provides a comprehensive overview of the YEScale System API. Remember to always keep your Access Key secure and use it responsibly.
    Modified at 2025-07-12 07:36:25
    Previous
    Make a request
    Next
    Create transcription by gpt-4o-mini-transcribe & gpt-4o-transcribe
    Built with