Vai al contenuto

Websites

Siti creati con l'IA e ospitati qui.

Apri Websites
Verificato rispetto alla dashboard il 19 novembre 2026

Oggi Websites ha due metodi pubblici, entrambi sul microservizio Account ed entrambi di sola lettura. Creare un sito web, caricare file, pubblicare una versione, tornare a una precedente, collegare un dominio, leggere il traffico e cambiare piano si fanno nella dashboard. Non hanno alcun metodo pubblico.

Invia una richiesta con la tua chiave:

curl -s https://xuda.ai/cpi/get_account_static_websites \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
const res = await fetch('https://xuda.ai/cpi/get_account_static_websites', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ api_key: 'YOUR_API_KEY' }),
});
const { code, data } = await res.json();
import requests

res = requests.post(
    'https://xuda.ai/cpi/get_account_static_websites',
    json={'api_key': 'YOUR_API_KEY'},
)

Elencare i tuoi siti web

get_account_static_websites non richiede alcun campo oltre alla tua chiave. Risponde con ogni sito web che possiedi, fino a 1.000, come righe:

json
{
  "code": 1,
  "data": {
    "rows": [
      { "id": "WEBSITE_ID", "value": { "app_name": "Bean There", "app_type": "static_website" } }
    ]
  }
}

Ogni id è l'id del sito web stesso e ogni value è il record del sito web, lo stesso che legge la dashboard. Contiene il nome del sito, il suo piano e i dettagli della sua pubblicazione. I siti web condivisi con te non sono in questo elenco, solo quelli che possiedi, in qualunque workspace siano archiviati.

Leggere le modalità di immagini

get_site_build_image_modes ti dice quali tipi di immagini il costruttore IA può usare per il tuo account. È la stessa risposta che il costruttore usa per bloccare o aprire le sue scelte di immagini.

bash
curl -s https://xuda.ai/cpi/get_site_build_image_modes \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
json
{
  "code": 1,
  "data": {
    "svg": true,
    "stock": true,
    "gen_low": false,
    "gen_high": false,
    "upgrade": true,
    "reason": "AI image generation needs a paid website plan and a workspace credit plan. Upgrade to unlock it."
  }
}

Metodi

Questa è la stessa tabella Account di cui AI Workspace, Cloud Hosting e On-Prem referenziano ciascuno la propria parte.

Come ti sembra questa guida?

Ultimo aggiornamento il 16 novembre 2026