Skip to content
Console

Python SDK: Read Methods

Complete read and helper method reference for Meshive and AsyncMeshive covering account, workspaces, pods, storage, assets, catalog, serverless, host machines, logs, and activity.

All read, listing, and waiting methods exposed by Meshive and AsyncMeshive (await them on AsyncMeshive). For mutating calls, see Write Methods. See Overview & Client for client setup and error classes.

MethodReturnsDescription
me()WhoAmIThe current API key’s owner.
list_api_keys()list[ApiKey]Your active API keys (prefixes only). From 1.11, is_current marks the key the client is using and expired a listed key that is past its expiry.
get_referral()ReferralYour referral link, how many people signed up with it, what it earned and the reward rule. The first call creates the account’s referral code if it has none yet. 1.11 or later.
get_email_preferences()EmailPreferencesWhether the account gets product update mail. It is changed in the console or with the unsubscribe link in an update mail. 1.11 or later.
list_platform_notices()list[PlatformNotice]Incidents and maintenance the Meshive team announced that are visible now, as the console’s banner shows them: scheduled, in progress, overdue, or resolved within the last day. An empty list means nothing is announced. 1.11 or later.
get_credit()CreditCredit balance and auto-recharge setting.
list_credit_history(*, start_date=None, end_date=None)list[CreditHistoryEntry]Top-ups, refunds and chargebacks (default: last 90 days).
list_workspaces()list[Workspace]Workspaces you can access.
get_workspace(workspace)WorkspaceDetailCost and resource summary of one workspace. From 1.11 it also lists the hosts’ maintenance windows that touch its pods and volumes (maintenance) and its conversations with hosts (host_messages).
get_workspace_billing(workspace)WorkspaceBillingThe console’s workspace Billing page: the hourly price now, the 7-day daily average, the charges per day for the workspace’s whole life, and this month’s shared-model spend and credits. Amounts are Decimal, except the per-day history rows, which are DailyCost (floats) as in get_workspace. Any member. 1.11 or later.
get_shared_earnings(workspace, *, start_date=None, end_date=None)SharedEarningsWhat the workspace earned by sharing its servings’ idle capacity: settlements newest first and totals per model. A date bound is that whole day; without bounds, the last 90 days. Any member. 1.11 or later.
list_members(workspace)list[Member]Members of a workspace.
list_invites(workspace)list[Invite]The workspace’s invitations sent in the last 24 hours, newest first; older ones are not listed. Inviting people is done in the console. Any member. 1.11 or later.
check_member_removal(workspace, user)MemberRemovalCheckWhether remove_member would remove a member (user is their email), and how many of their inference keys and port access keys keep working after it. Changes nothing. 1.11 or later.
wait_for_workspace(workspace, *, timeout=180.0, interval=3.0)WorkspacePoll list_workspaces() until the workspace with this ID (namespace_name) has status running, then return it — the point from which you can create pods and tasks in it. A status of error raises MeshiveError at once. Anything else keeps the wait going until timeout: that includes a workspace missing from the list (a new one can be absent for a moment) and terminated (a workspace still being set up can show it for a single poll). On timeout it raises WaitTimeoutError naming the workspace and the last status seen; terminated as the last status means setup failed. Needs 1.6 or later.
MethodReturnsDescription
list_pods(workspace)list[Pod]Pods in a workspace (by ID).
get_pod(pod_name, workspace)PodA single pod.
wait_for_pod(pod_name, workspace, *, until="running", timeout=600, interval=5)PodPoll until the pod reaches a status. Raises PodCreationFailedError with the reason when the platform cleaned the pod up because creating it failed.
wait_for_new_pod(name, workspace, *, until="running", timeout=600, interval=5, transaction_id=None)PodWait for a pod that create_pod(name, …) just accepted: find it by its display name, then wait like wait_for_pod. create_pod returns before the pod has an ID. Pass transaction_id=created.transaction_id and a creation that fails — for example an image that can’t be pulled — raises PodCreationFailedError with the reason right away instead of running into the timeout. Raises WaitTimeoutError if the pod doesn’t appear or reach until within timeout.
get_pod_metrics(pod_name, workspace)PodMetricsLive CPU/RAM/GPU/disk usage of a pod.
get_pod_assets(pod_name, workspace)PodAssetsA pod’s input assets, input slots, download progress and asset volumes with their hourly price, as the console’s Assets tab shows them. Works for any member, and for a deleted pod too. See Adding assets to a pod. 1.11 or later.
get_pod_history(pod_name, workspace, *, event_type=None, limit=50, offset=0)PodHistoryPageA pod’s history, newest first, as the console’s State history tab shows it: container exits the system detected (event_type="system_event") and actions taken on the pod ("user_action"). Page with offset while offset + limit is below total (at most 200 per page). Needs the admin or billing role. 1.11 or later.
get_pod_timeline(pod_name, workspace, *, start=None, end=None)PodTimelineHow long a pod was running, waiting and terminated, with each stretch. A date bound is that whole day and a time without an offset is UTC; the server picks the window when you leave them out. Needs the admin or billing role. 1.11 or later.
list_pod_alerts(workspace=None, *, unread_only=False, limit=50)list[PodAlert]Recent container exits that need attention (out of memory, crash loops, image pull errors, …), newest first, as the console’s alert banner shows them. Without a workspace, the alerts of every workspace where you have the admin or billing role; with one, that role is needed there. At most 200. 1.11 or later.
list_transactions(workspace)list[Transaction]Pod operations still in flight — why a pod is still creating. A failed one stays on the list for only a few minutes.
get_transaction(transaction_id, workspace)TransactionOne pod operation by ID, such as create_pod’s transaction_id: its status, steps and failure_reason. There is no time window, so it also finds operations that finished or failed long ago. NotFoundError for an ID outside the workspace.
MethodReturnsDescription
list_storages(workspace)list[Storage]Storages (volumes) in a workspace.
get_storage(storage_name, workspace)StorageA single storage.
list_storage_transactions(workspace)list[StorageTransaction]Volumes being created, grown or deleted. Like list_transactions it shows recent ones only (a create or grow for its first few minutes, a failed one for a few minutes after it failed, a delete while it runs), so an empty list means nothing is in progress. 1.11 or later.
get_storage_transaction(transaction_id, workspace)StorageTransactionOne storage operation by ID, such as create_storage’s or update_storage’s transaction_id, with no time window. NotFoundError for an ID outside the workspace or one that isn’t a storage operation (read pod operations with get_transaction). 1.11 or later.
list_assets(workspace, *, asset_type=None, status=None, collection=None, include_catalog=False, pod=None, page=1, page_size=20)AssetPageOne page of a workspace’s assets. Iterate it, or read .items, .total, .pages. collection=True lists only folder (collection) assets, False only single files. Assets a model set or catalog import added on its own are left out unless include_catalog=True; page 1 counts them in catalog_hidden. pod (a pod’s ID, also of a deleted pod) keeps the assets that pod uploaded from its watched folders. The three filters need 1.11; an older server ignores them and returns the unfiltered list.
get_asset(asset_id)AssetA single asset with its files and where it is in use. From 1.11 it also says where the asset came from (source), what it holds and which files are pickle files, which can run code when loaded (pickle_flag).
list_asset_files(workspace, *, view, search=None, pod=None, task_id=None, ingest_source=None, include_catalog=False, cursor=None, limit=None)AssetFilePageFiles across the workspace’s assets, like the console’s file views. view is model, adapter, checkpoint, config, file or output; search matches part of the path, pod keeps files saved from that pod, task_id that task’s outputs. Pass next_cursor back as cursor while has_more. File paths can come from what a pod wrote. 1.11 or later.
list_asset_detail_files(asset_id, *, paths=None, media_kind=None, file_type=None, offset=0, limit=200)AssetFileListOne asset’s files, ordered by path. paths are globs over the file paths ("renders/*" is that folder and everything in it, "*.png" at any depth); media_kind (image, video, audio, text, weights, archive, …) and file_type (model, lora, checkpoint, config, file, …) narrow further. total counts every match. 1.11 or later.
asset_file_download_urls(workspace, file_ids)FileDownloadShort-lived download links for up to 500 files picked by ID (file_…), across the workspace’s assets. Files that can’t be linked are skipped and counted in skipped_file_count. 1.11 or later.
get_comfy_layout(asset_id)ComfyLayoutHow an asset’s folders map to ComfyUI model roles. enabled=False, with a reason, means there is no confident layout: pick the files yourself. 1.11 or later.
asset_serve_facts(asset_id)AssetServeFactsWhether a model kept in Asset Hub can be served, with the same names as detect_model. ready=False means it is still uploading. 1.11 or later.
plan_asset_attach(asset_id, selections)AttachPlanWhat file selections of an asset would place in a pod before you add it: selections is a list of {"paths": [...], "strip_prefix": ...}, answered in the same order with file counts and sizes. Changes nothing. 1.11 or later.
list_open_assets(workspace)OpenAssetCatalogThe whole open-asset catalog: single files (entries, with the role to pass and existing_asset_id when the workspace has one already) and every model set, not only the ones a template takes. Import them with import_open_assets. 1.11 or later.
get_asset_storage(workspace)AssetStorageManaged asset storage usage, cost, and credit status.
import_asset(target, *, workspace, name=None, asset_type=None, revision=None, paths=None, hf_token_id=None, civitai_key_id=None)AssetImportedLink a Hugging Face repo (owner/name or its URL), a CivitAI model URL or a direct file URL as an asset: asset_id, file_count, total_bytes, is_gated, resolved_commit. Nothing is copied — no storage charge, ready at once; pods and tasks download it from the source when they start. Private or gated sources need a token or key saved in the console, by ID.
list_civitai_keys(workspace)list[HfToken]The workspace’s CivitAI keys by token_id and label, for civitai_key_id.
asset_download_urls(asset_id, *, paths=None)AssetDownloadShort-lived download links for an asset’s files: files (DownloadFile(path, url, size_bytes, content_hash)), expires_in seconds, complete. paths takes globs such as "config/*"; one request returns at most 500 files, so narrow a large asset with paths. Linked assets (fetched from Hugging Face or CivitAI when a pod starts) have no links.
download_asset(asset_id, dest, *, paths=None)list[Path]Saves the files under dest, keeping their paths inside the asset, and returns where they went. Existing files are overwritten; a path that would land outside dest is refused.
task_outputs(task_id) / download_task_outputs(task_id, dest)TaskOutputs / list[Path]A task’s output files with download links (files, expired, storage_provider), or saved under dest.

All need 1.11 or later. Buckets and logins are connected and saved in the console; these calls read them by ID and never return keys, tokens or passwords.

MethodReturnsDescription
list_storage_credentials(workspace, *, include_deleted=False)list[StorageCredential]The S3-compatible buckets connected to a workspace, by credential_id, label, provider and bucket name. Removed connections are listed only with include_deleted=True, under their label with a mark added (test becomes, for example, test (removed #31)), so the original label is free for a new connection. Any member.
browse_bucket(credential_id, workspace, *, prefix="", continuation_token=None)BucketListingOne folder level of a connected bucket: sub-folders (folders) and objects under prefix ("" is the bucket’s root; the connection’s default prefix is not applied). Pass next_continuation_token back with the same prefix for more. Browsing is rate-limited per user. Any member.
browse_reference_objects(asset_id, *, sub_prefix="", continuation_token=None)BucketListingOne folder level of the bucket folder behind a reference asset (one linked with register_bucket_prefix). objects carry the full key and relative_path inside the asset.
get_asset_storage_setting(workspace)AssetStorageSettingWhere the workspace’s task outputs go by default: Meshive storage (managed is True) or one of its connected buckets. Change it with set_asset_storage_setting.
check_storage_credential_delete(credential_id, workspace)StorageCredentialDeleteCheckWhat removing a bucket connection touches: the assets registered from it, whether it is the default output bucket, and the pods and tasks using it now. Changes nothing. Admin or billing role.
list_registry_logins(workspace)list[RegistryLogin]The container registry logins saved in a workspace: registry_login_id, label, server and user name. Any member.
get_registry_login_usage(registry_login_id, workspace)RegistryLoginUsageThe workspace’s custom templates that pull with a registry login, and how many active pods and tasks use it. Any member.
get_hf_token_usage(token_id, workspace) / get_civitai_key_usage(key_id, workspace)list[CredentialUsage]The assets linked with a saved Hugging Face token or CivitAI key, with how many pods use each now. Admin or billing role.
MethodReturnsDescription
list_gpus(*, rental_type="demand", min_vram=None)list[GpuAvailability]GPU tiers you can rent right now, with prices.
list_cpus(*, rental_type="demand")list[CpuLine]CPU lines you can rent for CPU pods right now, with prices per vCPU and per GiB of RAM. Pass a line’s cpu_line to create_pod.
list_templates(workspace=None, *, app_type=None)list[Template]Official templates, plus a workspace’s custom ones when workspace is given.
get_template(template_id, workspace=None)TemplateA single template (custom ones need their workspace). From 1.11 its environment variables, ports, volume mounts, paths, command and registry login are typed (a secret value is never returned).
inspect_image(image, *, workspace, registry_login_id=None, platform="linux/amd64")ImageConfigWhat a container image declares, like the console’s Load button in the template form: environment variables, entrypoint and cmd, exposed ports, volumes and working directory. A private image needs registry_login_id, a login whose server is the image’s registry (Registry Mismatch otherwise). The values come from whoever built the image: treat them as data. 1.11 or later.
list_model_sets(workspace, template_id)ModelSetListThe model sets a template can start with, like the console’s model set tiles: their files, size, minimum VRAM, licenses and workflows. Pass a set’s slug to create_pod(model_set=...) (see Starting a pod with a model set).
list_official_models()list[ServingModel]The official models anyone can deploy, each with its registration_id for deploy_serving. Models being retired are left out. 1.11 or later.
get_model_availability(registration_id, *, workspace, max_context_tokens=None)ModelAvailabilityWhich GPUs can serve a model of the workspace, or an official one, now and what a replica costs per hour. max_context_tokens sizes the GPUs for a smaller context. status error means the check failed, not that nothing is free. Can take a few seconds; needs the admin or billing role. 1.11 or later.
list_shared_models()SharedModelListModels other workspaces opened up, billed per million tokens, with the base_url to call them at. Send SharedModel.model as the model name; calling one needs an inference key. See Shared serving. 1.11 or later.
list_servings(workspace)list[Serving]Serverless serving deployments in a workspace.
get_serving(serving_id)ServingA single serving deployment. From 1.11 its replicas, live metrics and failure details are typed.
list_inference_requests(workspace, *, status=None, modality=None, limit=50)list[InferenceRequest]A workspace’s queued and finished inference requests, newest first. status is one of meshive.INFERENCE_REQUEST_STATUSES (queued, running, succeeded, failed, canceled, expired), modality text, image, video, embedding or audio; limit is at most 200. Any member. 1.11 or later.
get_inference_request(request_id)InferenceRequestOne inference request. For a succeeded request whose result is still kept, download_urls are signed links to it that expire in about an hour; call again for fresh ones. 1.11 or later.
list_inference_keys(workspace)list[InferenceKey]The workspace’s inference keys (mk-…): your own, or every key of the workspace for an admin or billing member. A key’s value is never listed. status doesn’t reflect expiry: a key whose expires_at has passed can still say active, so compare expires_at with the current time. These are neither port access keys nor Meshive API keys. 1.11 or later.
list_webhooks(workspace)list[WebhookEndpoint]The workspace’s webhook endpoints. Needs the admin or billing role. 1.11 or later.
list_webhook_deliveries(workspace, *, webhook_id=None, request_id=None, limit=50)list[WebhookDelivery]Events sent, or tried, to the workspace’s endpoints, newest first, optionally of one endpoint or one inference request. Deliveries of a deleted endpoint stay, with webhook_id None, so webhook_id= no longer finds them; list them unfiltered or by request_id. limit is at most 200. Needs the admin or billing role. 1.11 or later.
list_webhook_event_types()list[WebhookEventType]The events an endpoint can subscribe to, each with a sample payload. 1.11 or later.
list_tasks(workspace, *, status=None, limit=50, offset=0)list[Task]Serverless tasks, newest first. status is a string or list of statuses.
get_task(task_id)TaskA single task. From 1.11 it also types how the task was submitted (script, requirements, args, env with secret values masked, project, output bucket) and the split of its hourly price.
get_task_counts(workspace)TaskCountsA workspace’s tasks per status; deleted tasks aren’t counted. 1.11 or later.
list_task_gpus()list[TaskGpu]The GPUs a task can get right now, with the most per task and the per-GPU hourly price. Tasks use another pool than pods, so this differs from list_gpus; submit_task checks again. 1.11 or later.
MethodReturnsDescription
list_machines()list[Machine]Machines you host. From 1.11 each carries its price, setup state (setup), specs, earning_daily and pending_payout.
get_machine(machine_id)MachineDetailA single machine, with the workspaces renting it (clients), unread_messages, schedules, boot_report, network_warnings, disk_warnings (releases after 1.10) and your platform_fee. Needs 1.8 or later for the extra fields; older servers return the basic fields. From 1.11 also network_status (interfaces, warnings and recent automatic fixes) and disk_health (each disk’s state, the system disk’s usage and the issues, recovering ones included).
get_machine_metrics(machine_id)MachineMetricsLive metrics of a machine.
get_fan_curve(machine_id)FanCurveA GPU machine’s fan curve: its mode, the curve it follows, the saved custom curve, Meshive’s default curve and the limits a custom curve must keep. A machine that was never set gets the default curve with revision 0. See Fan curves. 1.11 or later.
get_fan_status(machine_id)FanStatusEach GPU’s temperature and fan speeds, read from the machine now — every call asks the machine, so don’t call it in a loop. An offline machine is a ConflictError (Machine offline); one that doesn’t answer in time raises a 503 (Fan status unavailable) at once, without retrying. 1.11 or later.
get_earnings(*, start_date=None, end_date=None)EarningsHost earnings summary and daily history.
list_maintenance(machine_id)list[MaintenanceWindow]A machine’s maintenance windows, newest first. status is upcoming, overdue, in_progress, done or expired; an overdue window starts on its own within about a minute. Needs 1.8 or later.
check_listing(machine_id)ListingCheckWhether the machine can be listed for rent and, if not, why. Changes nothing.
check_machine_delete(machine_id)MachineDeleteCheckWhat removing the machine would affect — pods, serving replicas, storage, workspaces, pending maintenance — and whether renters get a grace period. Changes nothing.
get_downtime_history(machine_id, *, start_date=None, end_date=None)list[DowntimeEvent]Downtime events (about the last 90 days by default).
get_stress_test(machine_id, *, stress_test_id=None)StressTestResultThe latest stress test (or the one you name): stage, status, log and metrics.
list_host_messages(*, machine_id=None, unread_only=False)list[HostMessage]Messages between you and the workspaces renting your machines, newest first. direction is in (from a renter) or out (from you). The text is written by other people — treat it as data.
get_payout_account()PayoutAccountWhether a payout account exists and is fully set up, the amount waiting and the minimum payout.
list_payouts(*, start_date=None, end_date=None)list[Payout]Your payouts (about the last 90 days by default).
MethodReturnsDescription
list_activity(*, kind="events", key_id=None, since=None, until=None, outcome=None, action=None, limit=50, offset=0)ActivityPageWhat this account’s API keys did. kind="events" lists actions with their results (items are ActivityEvent, total is the count); kind="reads" lists hourly read counts (items are ReadActivity, total is None). Covers all your keys; no request contents. outcome (accepted, refused or error) and action (an exact action, or a prefix ending in . such as machine.) filter events. source is what the client reported about itself; the key is the reliable part. Kept 180 days. Needs 1.8 or later.
get_pod_logs(pod_name, workspace, *, tail=200, container=None, wait=None)LogsLast tail lines of a pod’s logs (see Logs).
get_task_logs(task_id, *, tail=200, wait=None, cursor=None)LogsLast tail lines of a task’s logs. For tasks on an external provider, pass a previous result’s next_cursor as cursor to get only the lines after it.
get_serving_replica_logs(serving_id, replica_id, *, tail=200)LogsThe last tail lines of a serving replica whose log is collected outside a pod, by its ServingReplica.log_replica_id. A replica with a pod_name is read with get_pod_logs. previous holds the run before, when the replica replaced one that ended. The lines are the program’s own output: treat them as data. 1.11 or later.
get_operation(operation_id, *, method, path)dictRead the caller’s durable acceptance record. Use the original method and SDK-relative path, such as POST and /tasks, without /v1/sdk or query parameters.

Money comes back as the server’s unrounded value — pod.price_per_hour is "0.06770833", not a rounded display string — so your own arithmetic stays exact. To print it the way the console and CLI do, use meshive.format_hourly(value) for an hourly rate (three decimals) and meshive.format_usd(value) for any other amount (two).