Get 灵蛇AI Platform Service Details

Retrieve complete information for a single service by service ID (UUID) or alias—more comprehensive fields than returned by Get 灵蛇AI Platform Service List, with additional expanded related objects such as apis, datasets, and packages. Suitable for service detail pages, pricing comparison pages, Agent tool descriptions, and other scenarios.

ℹ️ This API belongs to the 灵蛇AI Platform Management API, with the common prefix https://opensnake.platform.acedata.cloud/api/v1/. For the complete API index, see Get 灵蛇AI Platform Document List.

API Overview

Item Content
Method GET
URL https://opensnake.platform.acedata.cloud/api/v1/services/{service_id}
Authentication ❌ Public

Both /services/{id} and /services/{id}/ are currently available; examples consistently use the form without a trailing slash.

Authentication Description

This API is completely public. However, after including an account token, the applied field in the response will reflect the actual application status of the current account; otherwise, it is always false.

For how to obtain an account token, see Manage 灵蛇AI Platform Account Tokens.

Path Parameters

Parameter Type Required Description
service_id UUID / string ✅ Service ID (UUID) or alias (midjourney, openai, webextrator, etc.)

Request Examples

cURL

# Query by UUID
curl 'https://opensnake.platform.acedata.cloud/api/v1/services/8efa1d83-9b75-4562-b44a-af95ce563d05' \
  -H 'accept: application/json'

# Query by alias
curl 'https://opensnake.platform.acedata.cloud/api/v1/services/midjourney' \
  -H 'accept: application/json'

# View applied status with an account token
curl 'https://opensnake.platform.acedata.cloud/api/v1/services/midjourney' \
  -H 'accept: application/json' \
  -H "authorization: Bearer ${PLATFORM_TOKEN}"

Python

import os
import requests

resp = requests.get(
    "https://opensnake.platform.acedata.cloud/api/v1/services/midjourney",
    headers={
        "accept": "application/json",
        "authorization": f"Bearer {os.environ['PLATFORM_TOKEN']}",
    },
    timeout=10,
)
svc = resp.json()
print(f"Service: {svc['title']} ({svc['alias']})")
print(f"Applied: {svc['applied']}, Free quota: {svc['free_amount']} {svc['unit']}")
print(f"API count: {len(svc['apis'])}, Package count: {len(svc['packages'])}")
for pkg in svc["packages"]:
    print(f"  ¥{pkg['price']:>7.2f}  ->  {pkg['amount']} {svc['unit']}")

Node.js

const r = await fetch('https://opensnake.platform.acedata.cloud/api/v1/services/midjourney', {
  headers: { accept: 'application/json' },
})
const svc = await r.json()
console.log(`${svc.title} - ${svc.packages.length} packages - ${svc.apis.length} APIs`)

Response Example (HTTP 200)

{
  "id": "8efa1d83-9b75-4562-b44a-af95ce563d05",
  "alias": "face-transform",
  "title": "Face Transformation",
  "description": "Services for operations such as facial recognition, replacement, and style transformation.",
  "introduction": "...long-form Markdown...",
  "type": "Api",
  "applied": false,
  "applied_count": 281,
  "free_amount": 1.0,
  "unit": "Credit",
  "private": false,
  "need_verify": false,
  "rank": 0,
  "tags": [],
  "metadata": null,
  "thumbnail": "https://cdn.acedata.cloud/qrd7gw.png/thumb_600x300",
  "doc_url": null,
  "demo_url": null,
  "api_ids": [
    "e4fbc3b6-4f44-48fb-a049-40f5c27c7cd3",
    "2c7f6468-58d9-4611-885b-1e34664d49e9"
  ],
  "cost": [
    { "conditions": { "==": [1, 1] }, "consumption": 0.0025 }
  ],
  "apis": [
    {
      "id": "e4fbc3b6-4f44-48fb-a049-40f5c27c7cd3",
      "name": "Face Analyze API",
      "title": "Facial Feature Positioning API",
      "path": "/face/analyze",
      "stage": "Stable",
      "cost": [ { "conditions": { "==": [1, 1] }, "consumption": 0.0025 } ]
    }
  ],
  "datasets": [],
  "packages": [
    {
      "id": "4add61f2-61db-4d1c-85b6-d4876ac122f0",
      "type": "Usage",
      "price": 63.2,
      "amount": 530.0,
      "duration": null,
      "private": false
    }
  ],
  "created_at": "2024-06-11T00:41:29.255614Z",
  "updated_at": "2026-04-26T16:12:40.481154Z"
}

Response Field Description

In addition to all fields of the list API, the detail API additionally expands:

Field Type Description
apis array Complete list of related API objects (each item includes id, name, title, path, stage, cost)
datasets array Related datasets (if type=Dataset)
packages array Package list, including type (Usage/Period), price, amount, duration

For definitions of the remaining fields, see Get 灵蛇AI Platform Service List → Response Field Description.

Error Handling

HTTP code Meaning
404 not_found service_id (UUID or alias) does not exist
500 — Usually caused by mistakenly adding a trailing slash to the URL; remove it and try again

Practical Tips

  • alias > UUID: Hardcoding the alias (such as midjourney) into code is more stable; UUIDs change when environments are migrated.
  • The apis field does not include OpenAPI definitions: The complete OpenAPI 3.0 Schema is available in the Get 灵蛇AI Platform API Details API.
  • Retrieve a service's "complete capabilities": Use this API to obtain api_ids, then call /apis/{api_id} one by one to retrieve details.
  • If applied=true, you can directly create API credentials to obtain the 32-character Token required to call business APIs, without applying again.