Graphrt

Replicate

Jalankan model resmi, versi dan deployment sebagai prediction (menunggu job, mengunduh output), cari dan jelajahi model (dibayar per run)

Beta v0.1.0 Node.js 16 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk Replicate HTTP API. Jalankan model apa pun (model resmi, versi tertentu atau deployment kamu) sebagai prediction, tunggu hasilnya dan unduh file output, serta jelajahi dan cari model, versi dan collection. Dibuat dengan lapisan REST deklaratif.

Yang bisa dilakukan

  • Run: run_model (official models, no version, e.g. black-forest-labs/flux-schnell), create_prediction (any model version), run_deployment (your deployments). They wait for the prediction (polling urls.get) and save output URLs into a folder. wait: false returns the prediction at once.
  • Predictions: get_prediction, list_predictions, cancel_prediction
  • Models: search (beta), list_models, get_model (with the latest version's input schema), list_model_versions, get_model_version, list_collections, get_collection, list_hardware
  • Account: get_account
  • api_request: any other endpoint, e.g. /v1/files (GET only when called by an agent)

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Get account replicate.get_account
  • Search models replicate.search
  • List models replicate.list_models
  • Get model replicate.get_model
  • List model versions replicate.list_model_versions
  • Get model version replicate.get_model_version
  • List collections replicate.list_collections
  • Get collection replicate.get_collection
  • List hardware replicate.list_hardware
  • Run official model replicate.run_model
Tampilkan semua 16 aksi
  • Create prediction replicate.create_prediction
  • Run deployment replicate.run_deployment
  • Get prediction replicate.get_prediction
  • List predictions replicate.list_predictions
  • Cancel prediction replicate.cancel_prediction
  • Replicate HTTP API request replicate.api_request

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • REPLICATE_API_TOKEN Wajib
    API token from <https://replicate.com/account/api-tokens> (sent as Authorization: Bearer)
  • REPLICATE_OUTPUT_DIR For files
    Absolute directory where output files are saved. Unset: nothing is downloaded and output keeps the URLs (they expire after about an hour)
  • REPLICATE_EXTRA_DOWNLOAD_HOSTS Opsional
    Comma-separated extra hosts output files may be downloaded from (exact host names), for models that return files elsewhere

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Replicate.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install replicate
workflow.yaml
- id: image
  type: replicate.run_model
  model_owner: black-forest-labs
  model_name: flux-schnell
  input: { prompt: "a watercolor fox in the snow", num_outputs: 1, output_format: png }
  cancel_after: 2m
- id: answer
  type: answer
  answer: "Saved {{#image.data.saved_files.0.path#}}"
Plugin di docs