Lexu.io API

Lexu.io API as documented publicly: 17 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 17

GET /api/v1/balance GET /api/v1/balance #
POST /api/v1/generations POST /api/v1/generations #
GET /v1/balance الرصيد وما تبقى من سقف المفتاح هذا الشهر. #
POST /v1/estimate تكلفة طلب بالكريدت، دون أي خصم. #
GET /v1/generations السجل، الأحدث أولًا (limit و before). #
POST /v1/generations يبدأ التوليد ويخصم الرصيد. يتطلب الترويسة Idempotency-Key. #
GET /v1/generations/{id} الحالة ورابط تنزيل جديد صالح ليوم. #
DELETE /v1/keys/current يلغي المفتاح المستخدم في الطلب. #
GET /v1/ledger حركات الرصيد. #
GET /v1/me الحساب والخطة وصلاحيات المفتاح. #
GET /v1/models النماذج ومدخلاتها وأسعارها. لا يحتاج مفتاحًا. #
POST /v1/studio-jobs يشغّل قالبًا ويخصم الرصيد: template_id و inputs و max_credits. يتطلب Idempotency-Key. #
GET /v1/studio-jobs/{id} تقدّم العمل وروابط النتائج. #
GET /v1/studios قوالب الاستوديوهات ومدخلاتها وأسعارها (type و studio). #
GET /v1/studios/{id} مدخلات قالب وخياراته، وسعره للخيارات المرسلة في inputs. #
POST /v1/uploads رابط لمدة ساعة يرفع منه العضو صورة أو فيديو من جهازه؛ بعدها استخدم upload: كمدخل. #
GET /v1/uploads/{id} هل رُفع الملف: waiting أو uploaded أو expired. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lexu-io:lexu-io-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lexu-io-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Lexu.io API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 17 operation(s) read from 1 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Lexu.io has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 15
    pages-with-code: 1
    pages-read: 1
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.lexu.io/docs/api
paths:
  /api/v1/balance:
    get:
      operationId: get_api_v1_balance
      tags:
      - Api
      summary: GET /api/v1/balance
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl https://www.lexu.io/api/v1/balance  -H "Authorization: Bearer lexu_live_…"

          أنشئ المفتاح من صفحة مفاتيح API. يظهر مرة واحدة فقط، فاحفظه في مكان آمن ولا تضعه في كود عام.

          الطلبات

          GET /v1/models النماذج ومدخلاتها وأسعارها. لا يحتاج مفتاحًا.

          GET /v1/me الحساب والخطة وصلاحيات المفتاح.

          GET /v1/balance الرصيد وما تبقى من سقف المفتاح هذا الشهر.

          POST /v1/estimate تكلفة طلب بالكريدت، دون أي خصم.

          POST /v'
  /api/v1/generations:
    post:
      operationId: post_api_v1_generations
      tags:
      - Api
      summary: POST /api/v1/generations
      x-source: https://www.lexu.io/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1GenerationsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST https://www.lexu.io/api/v1/generations  -H "Authorization: Bearer lexu_live_…"  -H "Content-Type: application/json"  -H
          "Idempotency-Key: 7f1c2a90-order-123"  -d ''{"model":"gpt-image-2.5","prompt":"a red perfume bottle on marble","aspect_ratio":"1:1"}''

          الرد (202)

          نسخ

          { "data": { "id": "fa349990-…", "status": "running", "model": "gpt-image-2.5", "credits": 2, "output_url": null } }

          GET'
  /v1/balance:
    get:
      operationId: get_v1_balance
      tags:
      - Balance
      summary: الرصيد وما تبقى من سقف المفتاح هذا الشهر.
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/estimate:
    post:
      operationId: post_v1_estimate
      tags:
      - Estimate
      summary: تكلفة طلب بالكريدت، دون أي خصم.
      x-source: https://www.lexu.io/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/generations:
    get:
      operationId: get_v1_generations
      tags:
      - Generations
      summary: السجل، الأحدث أولًا (limit و before).
      x-source: https://www.lexu.io/docs/api
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: before
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_generations
      tags:
      - Generations
      summary: يبدأ التوليد ويخصم الرصيد. يتطلب الترويسة Idempotency-Key.
      x-source: https://www.lexu.io/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1GenerationsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1GenerationsResponse'
      x-evidence:
        kind: documentation
  /v1/generations/{id}:
    get:
      operationId: get_v1_generations_id
      tags:
      - Generations
      summary: الحالة ورابط تنزيل جديد صالح ليوم.
      x-source: https://www.lexu.io/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1GenerationsIdResponse'
      x-evidence:
        kind: documentation
  /v1/keys/current:
    delete:
      operationId: delete_v1_keys_current
      tags:
      - Keys
      summary: يلغي المفتاح المستخدم في الطلب.
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteV1KeysCurrentResponse'
      x-evidence:
        kind: documentation
  /v1/ledger:
    get:
      operationId: get_v1_ledger
      tags:
      - Ledger
      summary: حركات الرصيد.
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1LedgerResponse'
      x-evidence:
        kind: documentation
  /v1/me:
    get:
      operationId: get_v1_me
      tags:
      - Me
      summary: الحساب والخطة وصلاحيات المفتاح.
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/models:
    get:
      operationId: get_v1_models
      tags:
      - Models
      summary: النماذج ومدخلاتها وأسعارها. لا يحتاج مفتاحًا.
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/studio-jobs:
    post:
      operationId: post_v1_studio_jobs
      tags:
      - Studio Jobs
      summary: 'يشغّل قالبًا ويخصم الرصيد: template_id و inputs و max_credits. يتطلب Idempotency-Key.'
      x-source: https://www.lexu.io/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1StudioJobsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/studio-jobs/{id}:
    get:
      operationId: get_v1_studio_jobs_id
      tags:
      - Studio Jobs
      summary: تقدّم العمل وروابط النتائج.
      x-source: https://www.lexu.io/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/studios:
    get:
      operationId: get_v1_studios
      tags:
      - Studios
      summary: قوالب الاستوديوهات ومدخلاتها وأسعارها (type و studio).
      x-source: https://www.lexu.io/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/studios/{id}:
    get:
      operationId: get_v1_studios_id
      tags:
      - Studios
      summary: مدخلات قالب وخياراته، وسعره للخيارات المرسلة في inputs.
      x-source: https://www.lexu.io/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/uploads:
    post:
      operationId: post_v1_uploads
      tags:
      - Uploads
      summary: رابط لمدة ساعة يرفع منه العضو صورة أو فيديو من جهازه؛ بعدها استخدم upload:<id> كمدخل.
      x-source: https://www.lexu.io/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/uploads/{id}:
    get:
      operationId: get_v1_uploads_id
      tags:
      - Uploads
      summary: 'هل رُفع الملف: waiting أو uploaded أو expired.'
      x-source: https://www.lexu.io/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1UploadsIdResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiV1GenerationsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        aspect_ratio:
          type: string
    PostV1GenerationsRequest:
      type: object
      properties:
        model:
          type: string
        prompt:
          type: string
        aspect_ratio:
          type: string
      required:
      - model
      - prompt
    PostV1GenerationsResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        model:
          type: string
        credits:
          type: number
        output_url:
          type: string
          description: null until completed
    GetV1GenerationsIdResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        credits:
          type: number
        refunded:
          type: boolean
        output_url:
          type: string
    DeleteV1KeysCurrentResponse:
      type: object
      properties:
        data:
          type: object
          description: نتيجة الإلغاء.
    GetV1LedgerResponse:
      type: object
      properties:
        data:
          type: array
          description: قائمة حركات الرصيد.
    PostV1StudioJobsRequest:
      type: object
      properties:
        template_id:
          type: string
        inputs:
          type: object
        max_credits:
          type: number
      required:
      - template_id
      - inputs
      - max_credits
    GetV1UploadsIdResponse:
      type: object
      properties:
        data:
          type: object
          description: حالة الملف.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Balance
- name: Estimate
- name: Generations
- name: Keys
- name: Ledger
- name: Me
- name: Models
- name: Studio Jobs
- name: Studios
- name: Uploads