@clickzetta/cz-cli-darwin-arm64 0.5.15 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/bin/cz-cli +0 -0
  2. package/bin/skills/lakehouse-doc-en/SKILL.md +6 -11
  3. package/bin/skills/lakehouse-doc-en/references/AIGateway.md +58 -13
  4. package/bin/skills/lakehouse-doc-en/references/Computation.md +1 -1
  5. package/bin/skills/lakehouse-doc-en/references/DataSource_Amazon_DocumentDB.md +3 -1
  6. package/bin/skills/lakehouse-doc-en/references/Foreach.md +14 -14
  7. package/bin/skills/lakehouse-doc-en/references/JDBC-Driver.md +0 -1
  8. package/bin/skills/lakehouse-doc-en/references/LakehouseAI-overview.md +21 -8
  9. package/bin/skills/lakehouse-doc-en/references/LakehouseDataGPT-tour.md +4 -9
  10. package/bin/skills/lakehouse-doc-en/references/LakehouseStudio-tour.md +14 -19
  11. package/bin/skills/lakehouse-doc-en/references/Lakehouse_Zilliz_MakeDataReadyforBIandAI.md +1 -1
  12. package/bin/skills/lakehouse-doc-en/references/Logstash.md +3 -3
  13. package/bin/skills/lakehouse-doc-en/references/Migrate_Spark_DataEngineeringBestPractices_Project_to_Lakehouse.md +1 -1
  14. package/bin/skills/lakehouse-doc-en/references/Notebook.md +17 -17
  15. package/bin/skills/lakehouse-doc-en/references/RemoteFunction-as-udf.md +14 -14
  16. package/bin/skills/lakehouse-doc-en/references/SQL_External_Catalog_Guide.md +1 -9
  17. package/bin/skills/lakehouse-doc-en/references/SUMMARY.md +59 -29
  18. package/bin/skills/lakehouse-doc-en/references/WINDOWFUNCTION.md +99 -57
  19. package/bin/skills/lakehouse-doc-en/references/Zettapark_Data_Engineering_Demo.md +1 -1
  20. package/bin/skills/lakehouse-doc-en/references/access-control-configuration.md +1 -8
  21. package/bin/skills/lakehouse-doc-en/references/aigw-2026-2-5-1.0.md +16 -0
  22. package/bin/skills/lakehouse-doc-en/references/aigw-2026-3-29-1.0.2.md +14 -0
  23. package/bin/skills/lakehouse-doc-en/references/aigw-2026-3-8-1.0.1.md +16 -0
  24. package/bin/skills/lakehouse-doc-en/references/aigw-2026-4-28-1.1.md +29 -0
  25. package/bin/skills/lakehouse-doc-en/references/aigw-2026-5-12-1.1.1.md +18 -0
  26. package/bin/skills/lakehouse-doc-en/references/aigw-2026-5-15-1.2.md +9 -0
  27. package/bin/skills/lakehouse-doc-en/references/aigw-2026-5-21-1.3.md +9 -0
  28. package/bin/skills/lakehouse-doc-en/references/aigw-2026-5-28-1.4.md +10 -0
  29. package/bin/skills/lakehouse-doc-en/references/aigw-2026-6-3-1.5.md +9 -0
  30. package/bin/skills/lakehouse-doc-en/references/alicloud-arn-externalid.md +0 -5
  31. package/bin/skills/lakehouse-doc-en/references/answer-accuracy-improve.md +120 -103
  32. package/bin/skills/lakehouse-doc-en/references/application-list.md +1 -3
  33. package/bin/skills/lakehouse-doc-en/references/approval-list.md +16 -17
  34. package/bin/skills/lakehouse-doc-en/references/batch-load-parquet-file-into-lakehouse.md +1 -1
  35. package/bin/skills/lakehouse-doc-en/references/batch_sync.md +9 -9
  36. package/bin/skills/lakehouse-doc-en/references/batch_sync_Sop.md +2 -2
  37. package/bin/skills/lakehouse-doc-en/references/batchloadparquetfileintoLakehouse.md +1 -1
  38. package/bin/skills/lakehouse-doc-en/references/bulkloadv1-python-sdk.md +3 -3
  39. package/bin/skills/lakehouse-doc-en/references/chart-auto-refresh-guide.md +12 -6
  40. package/bin/skills/lakehouse-doc-en/references/clickzetta-sample-data.md +3 -3
  41. package/bin/skills/lakehouse-doc-en/references/code_approval.md +1 -5
  42. package/bin/skills/lakehouse-doc-en/references/composite_task.md +31 -42
  43. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_environment_and_data_generate.md +6 -9
  44. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_javasdk_bulkload_realtime.md +4 -10
  45. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_kafka_realtime_sync.md +1 -10
  46. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_local_file_into_table_by_studio.md +0 -6
  47. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_studio_batchload_public_network.md +0 -5
  48. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_studio_python_node.md +2 -7
  49. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_studio_realtime_cdc_public_network.md +13 -18
  50. package/bin/skills/lakehouse-doc-en/references/comprehensive_guide_to_ingesting_studio_sql_insert.md +0 -1
  51. package/bin/skills/lakehouse-doc-en/references/concepts.md +1 -1
  52. package/bin/skills/lakehouse-doc-en/references/config-datasource.md +5 -7
  53. package/bin/skills/lakehouse-doc-en/references/connect-with-cli.md +116 -72
  54. package/bin/skills/lakehouse-doc-en/references/connect-with-cz-cli.md +151 -0
  55. package/bin/skills/lakehouse-doc-en/references/continue-job.md +9 -17
  56. package/bin/skills/lakehouse-doc-en/references/create-api-connection.md +315 -286
  57. package/bin/skills/lakehouse-doc-en/references/create-catalog-connection.md +1 -0
  58. package/bin/skills/lakehouse-doc-en/references/create-dynamic-table.md +4 -4
  59. package/bin/skills/lakehouse-doc-en/references/create-external-catalog.md +85 -22
  60. package/bin/skills/lakehouse-doc-en/references/create-table-ddl.md +45 -0
  61. package/bin/skills/lakehouse-doc-en/references/creating_alicloud_privatelinkendpoint.md +4 -6
  62. package/bin/skills/lakehouse-doc-en/references/creating_alicloud_privatelinkservice.md +4 -7
  63. package/bin/skills/lakehouse-doc-en/references/creating_tencentcloud_privatelinkendpoint.md +2 -7
  64. package/bin/skills/lakehouse-doc-en/references/creating_tencentcloud_privatelinkservice.md +1 -5
  65. package/bin/skills/lakehouse-doc-en/references/cz-cli-agent.md +15 -10
  66. package/bin/skills/lakehouse-doc-en/references/cz-cli-datasource.md +0 -8
  67. package/bin/skills/lakehouse-doc-en/references/cz-cli-sql.md +2 -45
  68. package/bin/skills/lakehouse-doc-en/references/cz-cli.md +53 -42
  69. package/bin/skills/lakehouse-doc-en/references/dashboard-version-management-guide.md +12 -4
  70. package/bin/skills/lakehouse-doc-en/references/data-integration-intro.md +1 -1
  71. package/bin/skills/lakehouse-doc-en/references/data-integration.md +29 -27
  72. package/bin/skills/lakehouse-doc-en/references/data-load-summary.md +3 -3
  73. package/bin/skills/lakehouse-doc-en/references/data-quality.md +25 -25
  74. package/bin/skills/lakehouse-doc-en/references/data-sharing.md +31 -54
  75. package/bin/skills/lakehouse-doc-en/references/data-sources.md +45 -45
  76. package/bin/skills/lakehouse-doc-en/references/data_catalog.md +23 -25
  77. package/bin/skills/lakehouse-doc-en/references/data_privacy.md +5 -2
  78. package/bin/skills/lakehouse-doc-en/references/data_sharing_between_accounts_guide.md +0 -4
  79. package/bin/skills/lakehouse-doc-en/references/data_visualization.md +4 -15
  80. package/bin/skills/lakehouse-doc-en/references/dataagent.md +39 -7
  81. package/bin/skills/lakehouse-doc-en/references/databricks-delta-to-lakehouse-migration.md +168 -0
  82. package/bin/skills/lakehouse-doc-en/references/databricks-dlt-to-lakehouse-migration.md +331 -0
  83. package/bin/skills/lakehouse-doc-en/references/databricks-external-catalog-practice.md +367 -0
  84. package/bin/skills/lakehouse-doc-en/references/databricks-jobs-to-studio-migration.md +199 -0
  85. package/bin/skills/lakehouse-doc-en/references/databricks-notebook-to-studio-migration.md +350 -0
  86. package/bin/skills/lakehouse-doc-en/references/databricks-uc-governance-to-lakehouse-migration.md +327 -0
  87. package/bin/skills/lakehouse-doc-en/references/datagpt-model-config.md +34 -0
  88. package/bin/skills/lakehouse-doc-en/references/datagpt_data_source.md +50 -37
  89. package/bin/skills/lakehouse-doc-en/references/datagpt_introduction.md +55 -79
  90. package/bin/skills/lakehouse-doc-en/references/datagpt_quickstart.md +50 -64
  91. package/bin/skills/lakehouse-doc-en/references/datalake-acceleration.md +75 -2
  92. package/bin/skills/lakehouse-doc-en/references/dbt-databricks-to-clickzetta-migration.md +242 -0
  93. package/bin/skills/lakehouse-doc-en/references/dynamic-mask.md +30 -30
  94. package/bin/skills/lakehouse-doc-en/references/dynamic-table-bestpractice.md +1 -1
  95. package/bin/skills/lakehouse-doc-en/references/dynamic-table-introduce.md +1 -1
  96. package/bin/skills/lakehouse-doc-en/references/dynamic_table_summary.md +1 -1
  97. package/bin/skills/lakehouse-doc-en/references/eco_integration/streamlit.md +1 -1
  98. package/bin/skills/lakehouse-doc-en/references/eco_integration/superset.md +1 -1
  99. package/bin/skills/lakehouse-doc-en/references/ecosystem-all.md +1 -3
  100. package/bin/skills/lakehouse-doc-en/references/ecosystem.md +145 -0
  101. package/bin/skills/lakehouse-doc-en/references/external-catalog-summary.md +33 -38
  102. package/bin/skills/lakehouse-doc-en/references/external-function-combo-practice.md +466 -0
  103. package/bin/skills/lakehouse-doc-en/references/f6fc6447ee.md +7 -9
  104. package/bin/skills/lakehouse-doc-en/references/federation-query.md +56 -6
  105. package/bin/skills/lakehouse-doc-en/references/finebi-mysql.md +2 -0
  106. package/bin/skills/lakehouse-doc-en/references/get-started-with-sample-data.md +10 -11
  107. package/bin/skills/lakehouse-doc-en/references/gitfolder.md +2 -3
  108. package/bin/skills/lakehouse-doc-en/references/grant-privileges.md +2 -0
  109. package/bin/skills/lakehouse-doc-en/references/iceberg-rest-catalog-databricks.md +166 -0
  110. package/bin/skills/lakehouse-doc-en/references/ide.md +1 -1
  111. package/bin/skills/lakehouse-doc-en/references/if_else_task.md +59 -57
  112. package/bin/skills/lakehouse-doc-en/references/input_output.md +10 -7
  113. package/bin/skills/lakehouse-doc-en/references/jobprofile-bestpractices.md +60 -64
  114. package/bin/skills/lakehouse-doc-en/references/kafka-connection.md +0 -1
  115. package/bin/skills/lakehouse-doc-en/references/key-concepts.md +146 -117
  116. package/bin/skills/lakehouse-doc-en/references/lakehouse-ai-gateway-cz-cli.md +317 -0
  117. package/bin/skills/lakehouse-doc-en/references/lakehouse-ai-sql-analysis.md +345 -0
  118. package/bin/skills/lakehouse-doc-en/references/lakehouse-dqc-guide.md +300 -0
  119. package/bin/skills/lakehouse-doc-en/references/lakehouse-medallion-sql-dt-guide.md +543 -0
  120. package/bin/skills/lakehouse-doc-en/references/lakehouse-multi-cloud-acceleration.md +274 -0
  121. package/bin/skills/lakehouse-doc-en/references/lakehouse-multimodal-ai-pipeline.md +198 -0
  122. package/bin/skills/lakehouse-doc-en/references/lakehouse-quick-experience_guide.md +49 -52
  123. package/bin/skills/lakehouse-doc-en/references/lakehouse-volume-pipe-acceleration-guide.md +380 -0
  124. package/bin/skills/lakehouse-doc-en/references/langchain-plug-installation.md +1 -1
  125. package/bin/skills/lakehouse-doc-en/references/management.md +4 -9
  126. package/bin/skills/lakehouse-doc-en/references/medallion-lakehouse-from-scratch.md +2 -1
  127. package/bin/skills/lakehouse-doc-en/references/metrics_answer_build.md +58 -21
  128. package/bin/skills/lakehouse-doc-en/references/migrate-spark-data-engineering-best-practices-to-lakehouse.md +1 -1
  129. package/bin/skills/lakehouse-doc-en/references/mindsdb.md +1 -1
  130. package/bin/skills/lakehouse-doc-en/references/monitoring_and_alerting.md +65 -60
  131. package/bin/skills/lakehouse-doc-en/references/monitoring_item_specification.md +33 -33
  132. package/bin/skills/lakehouse-doc-en/references/multitable_batch_sync.md +16 -16
  133. package/bin/skills/lakehouse-doc-en/references/multitable_realtime_sync.md +65 -72
  134. package/bin/skills/lakehouse-doc-en/references/multitable_realtime_sync_sop.md +54 -52
  135. package/bin/skills/lakehouse-doc-en/references/navicat-mysql.md +2 -0
  136. package/bin/skills/lakehouse-doc-en/references/om-dynamic-table.md +71 -66
  137. package/bin/skills/lakehouse-doc-en/references/om-vcluster.md +2 -0
  138. package/bin/skills/lakehouse-doc-en/references/open-api-create-session.md +79 -0
  139. package/bin/skills/lakehouse-doc-en/references/open-api-generate-auth-token.md +63 -0
  140. package/bin/skills/lakehouse-doc-en/references/open-api-overview.md +96 -0
  141. package/bin/skills/lakehouse-doc-en/references/open-api-quick-start.md +286 -0
  142. package/bin/skills/lakehouse-doc-en/references/open-api-response-guide.md +264 -0
  143. package/bin/skills/lakehouse-doc-en/references/open-api-safe-question-poll.md +201 -0
  144. package/bin/skills/lakehouse-doc-en/references/open-api-text2insight-query.md +99 -0
  145. package/bin/skills/lakehouse-doc-en/references/open-api-text2insight-stop.md +74 -0
  146. package/bin/skills/lakehouse-doc-en/references/overview.md +6 -7
  147. package/bin/skills/lakehouse-doc-en/references/permission-application.md +5 -5
  148. package/bin/skills/lakehouse-doc-en/references/pipe-introduction.md +1 -0
  149. package/bin/skills/lakehouse-doc-en/references/pipe-kafka-table-stream.md +72 -70
  150. package/bin/skills/lakehouse-doc-en/references/pipe-kafka.md +105 -110
  151. package/bin/skills/lakehouse-doc-en/references/pipe-overview.md +40 -40
  152. package/bin/skills/lakehouse-doc-en/references/pipe-storage-object.md +43 -48
  153. package/bin/skills/lakehouse-doc-en/references/pipe-summary.md +14 -4
  154. package/bin/skills/lakehouse-doc-en/references/pipe-syntax.md +58 -151
  155. package/bin/skills/lakehouse-doc-en/references/practice_python_task.md +4 -4
  156. package/bin/skills/lakehouse-doc-en/references/pricing-ai-gateway.md +181 -0
  157. package/bin/skills/lakehouse-doc-en/references/pricing-lakehouse.md +316 -0
  158. package/bin/skills/lakehouse-doc-en/references/pricing.md +44 -288
  159. package/bin/skills/lakehouse-doc-en/references/private-link-general.md +0 -2
  160. package/bin/skills/lakehouse-doc-en/references/pyspark-to-zettapark-migration-f1.md +1 -1
  161. package/bin/skills/lakehouse-doc-en/references/python-igs.md +7 -3
  162. package/bin/skills/lakehouse-doc-en/references/python-sample-put-github-rt-events.md +1 -1
  163. package/bin/skills/lakehouse-doc-en/references/python-task.md +1 -1
  164. package/bin/skills/lakehouse-doc-en/references/python_reference/connector.md +3 -3
  165. package/bin/skills/lakehouse-doc-en/references/python_reference/connector_advanced.md +2 -2
  166. package/bin/skills/lakehouse-doc-en/references/python_reference/connector_examples.md +2 -2
  167. package/bin/skills/lakehouse-doc-en/references/python_sdk_guide.md +1 -1
  168. package/bin/skills/lakehouse-doc-en/references/python_shell_datasource.md +11 -9
  169. package/bin/skills/lakehouse-doc-en/references/quick_start_batch_sync_data.md +9 -18
  170. package/bin/skills/lakehouse-doc-en/references/quick_start_bi_analysis.md +8 -25
  171. package/bin/skills/lakehouse-doc-en/references/quick_start_create_workspace.md +4 -6
  172. package/bin/skills/lakehouse-doc-en/references/quick_start_data_quality.md +8 -8
  173. package/bin/skills/lakehouse-doc-en/references/quick_start_etl.md +16 -20
  174. package/bin/skills/lakehouse-doc-en/references/quick_start_monitoring_and_alerting.md +10 -18
  175. package/bin/skills/lakehouse-doc-en/references/quick_start_sql_query.md +7 -10
  176. package/bin/skills/lakehouse-doc-en/references/quick_start_upload_data.md +5 -7
  177. package/bin/skills/lakehouse-doc-en/references/quick_start_user_management.md +8 -8
  178. package/bin/skills/lakehouse-doc-en/references/quick_start_workspace.md +0 -5
  179. package/bin/skills/lakehouse-doc-en/references/quick_start_workspace_user.md +8 -8
  180. package/bin/skills/lakehouse-doc-en/references/quickstart.md +69 -56
  181. package/bin/skills/lakehouse-doc-en/references/quickstart_datashare_between_companies.md +0 -5
  182. package/bin/skills/lakehouse-doc-en/references/quickstart_envirment_for_team.md +0 -24
  183. package/bin/skills/lakehouse-doc-en/references/realtime-pipeline-selection-guide.md +1 -2
  184. package/bin/skills/lakehouse-doc-en/references/realtime-sales-dashboard-with-dynamic-table.md +3 -3
  185. package/bin/skills/lakehouse-doc-en/references/realtime_sync.md +0 -1
  186. package/bin/skills/lakehouse-doc-en/references/release-note-2026-05-19.md +5 -3
  187. package/bin/skills/lakehouse-doc-en/references/revoke-privileges.md +3 -1
  188. package/bin/skills/lakehouse-doc-en/references/roles.md +2 -3
  189. package/bin/skills/lakehouse-doc-en/references/row-filter.md +165 -0
  190. package/bin/skills/lakehouse-doc-en/references/row_level_permission.md +30 -19
  191. package/bin/skills/lakehouse-doc-en/references/scheduled_task.md +28 -21
  192. package/bin/skills/lakehouse-doc-en/references/security_overview.md +99 -21
  193. package/bin/skills/lakehouse-doc-en/references/set-command.md +1 -1
  194. package/bin/skills/lakehouse-doc-en/references/setup.md +13 -15
  195. package/bin/skills/lakehouse-doc-en/references/show-grants.md +1 -1
  196. package/bin/skills/lakehouse-doc-en/references/snowflake-dynamic-tables-to-lakehouse.md +2 -2
  197. package/bin/skills/lakehouse-doc-en/references/spark-connector-summary.md +1 -1
  198. package/bin/skills/lakehouse-doc-en/references/sql_functions/context_functions/current_vcluster.md +1 -1
  199. package/bin/skills/lakehouse-doc-en/references/sso-configuration.md +2 -2
  200. package/bin/skills/lakehouse-doc-en/references/streaming_pipeline_with_dynamic_table.md +0 -1
  201. package/bin/skills/lakehouse-doc-en/references/studio-incremental-sync-practice.md +27 -23
  202. package/bin/skills/lakehouse-doc-en/references/studio-shell-task.md +1 -1
  203. package/bin/skills/lakehouse-doc-en/references/supported-cloud-platforms.md +32 -0
  204. package/bin/skills/lakehouse-doc-en/references/table_rendering.md +18 -12
  205. package/bin/skills/lakehouse-doc-en/references/task-develop.md +89 -91
  206. package/bin/skills/lakehouse-doc-en/references/task_development.md +19 -17
  207. package/bin/skills/lakehouse-doc-en/references/task_group.md +16 -14
  208. package/bin/skills/lakehouse-doc-en/references/task_instance.md +21 -21
  209. package/bin/skills/lakehouse-doc-en/references/task_param.md +38 -35
  210. package/bin/skills/lakehouse-doc-en/references/task_param_reference.md +81 -79
  211. package/bin/skills/lakehouse-doc-en/references/task_scheduling_dependency.md +20 -21
  212. package/bin/skills/lakehouse-doc-en/references/tencentcloud_arn_and_externalid.md +1 -5
  213. package/bin/skills/lakehouse-doc-en/references/trial-account-quotas-and-limits.md +1 -3
  214. package/bin/skills/lakehouse-doc-en/references/tutorial_connect_to_lakehouse.md +69 -0
  215. package/bin/skills/lakehouse-doc-en/references/tutorials.md +4 -1
  216. package/bin/skills/lakehouse-doc-en/references/unique-key.md +167 -0
  217. package/bin/skills/lakehouse-doc-en/references/usageandbillingview.md +138 -0
  218. package/bin/skills/lakehouse-doc-en/references/use-dbt-dev.md +3 -3
  219. package/bin/skills/lakehouse-doc-en/references/use-java-sdk-realtime-uploaddata.md +1 -1
  220. package/bin/skills/lakehouse-doc-en/references/use-java-sdk-upload-data-local.md +3 -3
  221. package/bin/skills/lakehouse-doc-en/references/use-models.md +128 -0
  222. package/bin/skills/lakehouse-doc-en/references/use-mysql-client.md +81 -81
  223. package/bin/skills/lakehouse-doc-en/references/use-python-sdk-upload-data.md +10 -12
  224. package/bin/skills/lakehouse-doc-en/references/user-identification.md +2 -3
  225. package/bin/skills/lakehouse-doc-en/references/user_permission_grand_guide.md +1 -1
  226. package/bin/skills/lakehouse-doc-en/references/using-udf-in-dynamic-table.md +1 -1
  227. package/bin/skills/lakehouse-doc-en/references/vc_cache.md +18 -22
  228. package/bin/skills/lakehouse-doc-en/references/vcluster_size_description.md +33 -31
  229. package/bin/skills/lakehouse-doc-en/references/virtual-cluster.md +43 -45
  230. package/bin/skills/lakehouse-doc-en/references/web-job-history.md +94 -108
  231. package/bin/skills/lakehouse-doc-en/references/web_search.md +16 -7
  232. package/bin/skills/lakehouse-doc-en/references/zettapark-data-engineering-demo.md +1 -1
  233. package/bin/skills/lakehouse-doc-en/references/zettapark-dataframe-guide.md +144 -70
  234. package/bin/skills/lakehouse-doc-en/references/zettapark-dynamic-table-guide.md +2 -2
  235. package/bin/skills/lakehouse-doc-en/references/zettapark-etl-guide.md +73 -33
  236. package/bin/skills/lakehouse-doc-en/references/zettapark-feature-engineering.md +2 -2
  237. package/bin/skills/lakehouse-doc-en/references/zettapark-functions-guide.md +75 -46
  238. package/bin/skills/lakehouse-doc-en/references/zettapark-quick-start.md +2 -2
  239. package/bin/skills/lakehouse-doc-en/references/zettapark-stream-guide.md +4 -4
  240. package/bin/skills/lakehouse-doc-en/references/zettapark-volume-guide.md +93 -29
  241. package/package.json +1 -1
  242. package/bin/skills/lakehouse-doc-en/references/CLAUDE.md +0 -606
  243. package/bin/skills/lakehouse-doc-en/references/modelprice.md +0 -155
@@ -1,183 +1,90 @@
1
- # Pipe Syntax
1
+ # Pipe
2
2
 
3
- Pipe is a continuous data ingestion object that automates importing data from object storage or Kafka into the Lakehouse. This document provides a complete reference for Pipe-related SQL syntax.
3
+ Pipe is the continuous data ingestion object in the Lakehouse. Once created via SQL DDL, it runs automatically, continuously reading data from object storage (OSS/COS/S3) or Kafka and writing it to a target table.
4
4
 
5
- ## Create Pipe
5
+ For a detailed introduction, see [Pipe Object Model](om-pipe.md).
6
6
 
7
- ### Import Data from Object Storage
7
+ ---
8
8
 
9
- ```SQL
10
- CREATE PIPE [IF NOT EXISTS] <pipe_name>
11
- VIRTUAL_CLUSTER = 'virtual_cluster_name'
12
- INGEST_MODE = 'LIST_PURGE' | 'EVENT_NOTIFICATION'
13
- [COPY_JOB_HINT = '']
14
- AS <copy_statement>;
15
- ```
16
-
17
- **Parameter Description:**
9
+ ## Chapter Contents
18
10
 
19
- | Parameter | Required | Description |
20
- |-----------|----------|-------------|
21
- | `pipe_name` | Yes | Name of the Pipe object |
22
- | `VIRTUAL_CLUSTER` | Yes | Name of the compute cluster used to execute COPY jobs |
23
- | `INGEST_MODE` | Yes | Data ingestion mode: `LIST_PURGE` (polling scan) or `EVENT_NOTIFICATION` (event notification trigger) |
24
- | `COPY_JOB_HINT` | No | Lakehouse reserved parameter. Supports `IGNORE_TMP_FILE` (value `true`\|`false`, default `true`), which filters files or directories starting with `.` or `_temporary` |
25
- | `copy_statement` | Yes | A standard `COPY INTO` statement. Supports the `ON_ERROR=CONTINUE\|ABORT` parameter for error handling strategy |
11
+ | Page | Description |
12
+ |------|-------------|
13
+ | [CREATE PIPE](create-pipe.md) | Create an object storage Pipe or Kafka Pipe |
14
+ | [ALTER PIPE](alter-pipe.md) | Pause, resume, or modify batch interval and other properties |
15
+ | [DROP PIPE](drop-pipe.md) | Drop a Pipe (does not affect target table data) |
16
+ | [SHOW PIPES](show-pipes.md) | List all Pipes in the current Schema |
17
+ | [SHOW CREATE PIPE](show-create-pipe.md) | View the creation statement of a Pipe |
18
+ | [DESC PIPE](desc-pipe.md) | View Pipe details including status, source, target, and latency |
26
19
 
27
- **Usage Restrictions:**
20
+ ---
28
21
 
29
- - COPY statements in a Pipe do not support the `FILES`, `REGEXP`, or `SUBDIRECTORY` parameters.
30
- - Each Pipe must correspond to an independent Volume; Volumes cannot be reused.
22
+ ## Common Operations
31
23
 
32
- **Reference:** [Import Data Continuously from Object Storage Using Pipe](pipe-storage-object.md)
33
-
34
- ### Import Data from Kafka
24
+ ### Create an Object Storage Pipe
35
25
 
36
26
  ```SQL
37
- CREATE PIPE [IF NOT EXISTS] <pipe_name>
38
- VIRTUAL_CLUSTER = 'virtual_cluster_name'
39
- [INITIAL_DELAY_IN_SECONDS = '']
40
- [BATCH_INTERVAL_IN_SECONDS = '']
41
- [BATCH_SIZE_PER_KAFKA_PARTITION = '']
42
- [MAX_SKIP_BATCH_COUNT_ON_ERROR = '']
43
- [RESET_KAFKA_GROUP_OFFSETS = '']
44
- [COPY_JOB_HINT = '']
45
- AS <copy_statement>;
27
+ -- LIST_PURGE mode: periodic polling, deletes source files after import
28
+ CREATE PIPE orders_pipe
29
+ VIRTUAL_CLUSTER = 'DEFAULT'
30
+ INGEST_MODE = 'LIST_PURGE'
31
+ AS
32
+ COPY INTO orders FROM VOLUME orders_vol USING CSV OPTIONS('header' = 'true');
46
33
  ```
47
34
 
48
- **Parameter Description:**
49
-
50
- | Parameter | Required | Default | Description |
51
- |-----------|----------|---------|-------------|
52
- | `VIRTUAL_CLUSTER` | Yes | -- | Name of the compute cluster used to execute COPY jobs |
53
- | `INITIAL_DELAY_IN_SECONDS` | No | 0 | Initial delay in seconds before the first job is scheduled |
54
- | `BATCH_INTERVAL_IN_SECONDS` | No | 60 | Batch interval in seconds |
55
- | `BATCH_SIZE_PER_KAFKA_PARTITION` | No | 500000 | Maximum number of messages per batch for each Kafka partition |
56
- | `MAX_SKIP_BATCH_COUNT_ON_ERROR` | No | 30 | Maximum number of retries when skipping batches on error |
57
- | `RESET_KAFKA_GROUP_OFFSETS` | No | none | Initial Kafka offset when starting the Pipe. Possible values: `none` (no action), `valid` (reset expired offsets), `earliest`, `latest`, `${TIMESTAMP_MILLISECONDS}` |
35
+ > ⚠️ `LIST_PURGE` mode **permanently deletes** source files from OSS after a successful import. This is irreversible. Use `EVENT_NOTIFICATION` mode if you need to retain the files.
58
36
 
59
- **Reference:**
60
-
61
- - [Import Kafka Data Continuously Using read_kafka](pipe-kafka.md)
62
- - [Import Kafka Data Continuously Using Kafka Table Stream](pipe-kafka-table-stream.md)
63
-
64
- ## Pause and Resume Pipe
65
-
66
- Control the execution state of a Pipe:
37
+ ### Create a Kafka Pipe
67
38
 
68
39
  ```SQL
69
- -- Pause Pipe
70
- ALTER PIPE pipe_name SET PIPE_EXECUTION_PAUSED = true;
71
-
72
- -- Resume Pipe
73
- ALTER PIPE pipe_name SET PIPE_EXECUTION_PAUSED = false;
40
+ CREATE PIPE kafka_orders_pipe
41
+ VIRTUAL_CLUSTER = 'DEFAULT'
42
+ BATCH_INTERVAL_IN_SECONDS = '60'
43
+ AS
44
+ COPY INTO orders_raw
45
+ FROM (
46
+ SELECT CAST(value AS STRING) AS raw_msg
47
+ FROM TABLE(READ_KAFKA(
48
+ 'kafka-host:9092', 'orders_topic', '',
49
+ 'pipe_orders_group', '', '', '', '',
50
+ 'raw', 'raw', 0, map()
51
+ ))
52
+ );
74
53
  ```
75
54
 
76
- ## Modify Pipe Properties
77
-
78
- Modify the configuration properties of a Pipe. Only one property can be modified at a time; to modify multiple properties, execute multiple `ALTER` commands.
55
+ ### Pause and Resume
79
56
 
80
57
  ```SQL
81
- ALTER PIPE pipe_name SET
82
- [VIRTUAL_CLUSTER = 'virtual_cluster_name']
83
- | [BATCH_INTERVAL_IN_SECONDS = '']
84
- | [BATCH_SIZE_PER_KAFKA_PARTITION = '']
85
- | [MAX_SKIP_BATCH_COUNT_ON_ERROR = '']
86
- | [COPY_JOB_HINT = ''];
87
- ```
58
+ -- Pause
59
+ ALTER PIPE orders_pipe SET PIPE_EXECUTION_PAUSED = TRUE;
88
60
 
89
- **Examples:**
61
+ -- Resume
62
+ ALTER PIPE orders_pipe SET PIPE_EXECUTION_PAUSED = FALSE;
90
63
 
91
- ```SQL
92
- -- Modify the compute cluster
93
- ALTER PIPE pipe_name SET VIRTUAL_CLUSTER = 'default';
94
- -- Set COPY_JOB_HINT
95
- ALTER PIPE pipe_name SET COPY_JOB_HINT = '{"cz.mapper.kafka.message.size": "2000000"}';
64
+ -- Trigger an immediate scan
65
+ ALTER PIPE orders_pipe REFRESH;
96
66
  ```
97
67
 
98
- ## View Pipe List
99
-
100
- List all Pipe objects within the specified scope:
68
+ ### View and Drop
101
69
 
102
70
  ```SQL
103
- -- List all Pipes in the current schema
71
+ -- View all Pipes
104
72
  SHOW PIPES;
105
- -- List all Pipes in a specified schema
106
- SHOW PIPES IN SCHEMA schema_name;
107
- -- List all Pipes in a specified workspace
108
- SHOW PIPES IN WORKSPACE workspace_name;
109
- ```
110
-
111
- **Return Columns:**
112
-
113
- | Column Name | Description |
114
- |-------------|-------------|
115
- | `pipe_name` | Pipe name |
116
- | `pipe_kind` | Pipe type (object storage or Kafka) |
117
- | `status` | Current status, e.g., `RUNNING`, `PAUSED`, `INVALID` |
118
- | `copy_statement` | The COPY INTO statement associated with the Pipe |
119
-
120
- ## View Pipe Details
121
-
122
- View detailed information about a specific Pipe object:
123
-
124
- ```SQL
125
- DESC PIPE [EXTENDED] <name>;
126
- ```
127
-
128
- **Sample Output:**
129
-
130
- ```
131
- DESC PIPE EXTENDED kafka_pipe_stream;
132
- +--------------------+-----------------------------------------------------+
133
- | info_name | info_value |
134
- +--------------------+-----------------------------------------------------+
135
- | name | kafka_pipe_stream |
136
- | creator | UAT_TEST |
137
- | created_time | 2025-03-05 10:40:55.405 |
138
- | last_modified_time | 2025-03-05 10:40:55.405 |
139
- | comment | |
140
- | properties | ((virtual_cluster,test_alter)) |
141
- | copy_statement | COPY INTO TABLE example.pipe_schema.sink_table ... |
142
- | pipe_status | RUNNING |
143
- | output_name | workspace.pipe_schema.sink_table |
144
- | input_name | kafka_table_stream:workspace.pipe_schema.stream1 |
145
- | invalid_reason | |
146
- | pipe_latency | {"kafka":{"lags":{"0":0},"offsetLag":0}} |
147
- +--------------------+-----------------------------------------------------+
148
- ```
149
-
150
- ## View Pipe Creation Statement
151
-
152
- ```SQL
153
- SHOW CREATE PIPE <name>;
154
- ```
155
-
156
- ## Drop Pipe
157
73
 
158
- When a Pipe object is no longer needed, use the following command to delete it:
74
+ -- View Pipe details
75
+ DESC PIPE orders_pipe;
159
76
 
160
- ```SQL
161
- DROP PIPE <name>;
162
- ```
163
-
164
- ## load_history Function
165
-
166
- **Description**: View the COPY job import file history of a table, with a retention period of 7 days. When a Pipe runs, it uses `load_history` to avoid re-importing existing files, ensuring data uniqueness.
167
-
168
- **Syntax:**
169
-
170
- ```SQL
171
- load_history('schema_name.table_name')
77
+ -- Drop a Pipe
78
+ DROP PIPE orders_pipe;
172
79
  ```
173
80
 
174
- **Example:**
175
-
176
- ```SQL
177
- SELECT * FROM load_history('myschema.mytable');
178
- ```
81
+ ---
179
82
 
180
- ## Constraints and Limitations
83
+ ## Related Documentation
181
84
 
182
- - When the data source is Kafka: Only one `read_kafka` function is allowed in a Pipe.
183
- - When the data source is object storage: Only one Volume object is allowed in a Pipe.
85
+ | Document | Description |
86
+ |----------|-------------|
87
+ | [Pipe Object Model](om-pipe.md) | Core concepts, comparison of two modes, deduplication mechanism, complete parameter reference |
88
+ | [Object Storage Pipe Detailed Configuration](pipe-storage-object.md) | Complete configuration for EVENT_NOTIFICATION mode |
89
+ | [Kafka Pipe Detailed Configuration](pipe-kafka.md) | READ_KAFKA parameter reference, consumer offset management |
90
+ | [Real-time Pipeline Selection Guide](realtime-pipeline-selection-guide.md) | Comparison and selection guide for Pipe / Stream / Dynamic Table |
@@ -6,7 +6,7 @@ In the task development module, the Python task provided is a specific task type
6
6
 
7
7
  ### Runtime Environment and Customization
8
8
 
9
- Python tasks are executed in a system preset Pod environment, with the pre-installed Python version being Python 3 (current version is 3.9.2, which may be updated in the future).
9
+ Python tasks are executed in a system preset Pod environment, with the pre-installed Python version being Python 3 (current version is 3.10, which may be updated in the future).
10
10
 
11
11
  The default system image includes some commonly used dependency packages to support connection and data access with Singdata Lakehouse, as well as operations on object storage services such as Alibaba Cloud OSS and Tencent Cloud COS. These dependencies include but are not limited to:
12
12
 
@@ -111,7 +111,7 @@ conn = connect(
111
111
  instance='your_instance',
112
112
  workspace='your_workspace',
113
113
  schema='public',
114
- vcluster='default'
114
+ vcluster='DEFAULT'
115
115
  )
116
116
 
117
117
  ```
@@ -148,7 +148,7 @@ from sqlalchemy import text
148
148
 
149
149
  ```
150
150
 
151
- Create an instance of the SQLAlchemy engine for ClickZetta Lakehouse:
151
+ Create an instance of the SQLAlchemy engine for Singdata Lakehouse:
152
152
 
153
153
  ```py
154
154
  engine = create_engine(
@@ -185,7 +185,7 @@ conn = connect(
185
185
  instance='your_instance',
186
186
  workspace='your_workspace',
187
187
  schema='public',
188
- vcluster='default'
188
+ vcluster='DEFAULT'
189
189
  )
190
190
 
191
191
  bulkload_stream = conn.create_bulkload_stream(schema='public', table='bulkload_test')
@@ -0,0 +1,181 @@
1
+ # AI Gateway Pricing
2
+
3
+ This page describes the pricing model and list prices of Singdata AI Gateway in overseas regions (USD). For Lakehouse compute, storage, and network resources, see [Lakehouse Pricing](pricing-lakehouse.md). The pricing entry point is [Pricing and Billing](pricing.md).
4
+
5
+ ## Overview
6
+
7
+ Singdata AI Gateway is a one-stop platform that aggregates and manages mainstream LLMs (Anthropic Claude, OpenAI GPT, Qwen, DeepSeek, GLM, Kimi, MiniMax, and more) behind a unified API, so you do not have to register, integrate, and fund a separate account on each vendor's platform.
8
+
9
+ > 💡 **Tip**: When Analytics Agent calls an LLM, the resulting token consumption is billed at the per-model unit prices listed in this document.
10
+
11
+ ## Billing Modes
12
+
13
+ ### Pay-as-you-go
14
+
15
+ Each API call is billed by the number of tokens it actually consumes, with no minimum spend. Metering is captured at the individual call level and can be aggregated by API key, application, or tenant. Bills are issued monthly, and itemized usage is available in the Billing Center of the console.
16
+
17
+ ## Billing Dimensions
18
+
19
+ Different model types are billed along different dimensions. The fields used in the price tables below have the following meanings.
20
+
21
+ ### Chat Models Billed by Token
22
+
23
+ Input and output are priced separately. One token is roughly 0.5 Chinese characters or 0.75 English words.
24
+
25
+ | Field | Meaning |
26
+ | --- | --- |
27
+ | Input | Unit price for tokens in the prompt portion of the request |
28
+ | Output | Unit price for tokens generated by the model |
29
+ | Context Window | Tiered pricing across context-window ranges; tokens are billed at the unit price of the tier their request falls into |
30
+
31
+ > 💡 **Tip**: For example, a Q&A with 1,000 characters of input and 2,000 characters of output is roughly 1,000 input tokens and 2,000 output tokens. With an input price of $2 per million tokens and an output price of $8 per million tokens, the call costs about `1000÷1,000,000×2 + 2000÷1,000,000×8 = $0.018`.
32
+
33
+ ### Caching and Cost Savings
34
+
35
+ If you repeatedly send the same leading content (a long system prompt, a fixed knowledge base document, and so on), the model can keep that content available for reuse on subsequent calls instead of recomputing it from scratch. That is what caching does. Tokens that hit the cache are priced well below the standard input price, which can substantially reduce cost for long prompts and multi-turn conversations.
36
+
37
+ There are two types of caching, mapped to different columns in the price tables.
38
+
39
+ | Type | How It Works | Corresponding Columns in Price Table |
40
+ | --- | --- | --- |
41
+ | Explicit Cache | You explicitly tell the model to store a segment. A one-time write fee applies on creation (slightly higher than the input price), and a much lower hit fee applies on each subsequent reuse | Explicit·Write, Explicit·Write·5min, Explicit·Write·1h, Explicit·Hit |
42
+ | Implicit Cache | The system automatically detects repeated prefixes and caches them, with no manual action required. There is no write fee; only the lower hit price applies on hits | Implicit·Hit |
43
+
44
+ How each column is billed:
45
+
46
+ - **Explicit·Write**: Charged when a prompt segment is first written to the cache, calculated as the number of tokens written multiplied by this unit price
47
+ - **Explicit·Write·5min / Explicit·Write·1h**: Anthropic Claude's explicit cache offers two retention tiers. The 5-minute tier has a lower unit price; the 1-hour tier has a higher unit price but suits cases where the same content is reused repeatedly within an hour
48
+ - **Explicit·Hit**: Charged when a subsequent request hits the cache, calculated as the number of hit tokens multiplied by this unit price, which is significantly lower than the input price
49
+ - **Implicit·Hit**: When the system detects a repeated prefix in a request, the hit portion is billed at this unit price. Because the system writes to the cache automatically, no separate write fee applies
50
+
51
+ Vendors differ in which cache types they support. The matrix below summarizes current support:
52
+
53
+ | Vendor | Explicit Cache | Implicit Cache |
54
+ | --- | --- | --- |
55
+ | Anthropic Claude | Supported (5-minute and 1-hour write tiers) | Not supported |
56
+ | OpenAI GPT | Not supported | Supported |
57
+ | Qwen | Supported | Partially supported (3.5 series supported; 3.6 / 3.7 series not yet available) |
58
+ | DeepSeek | Partially supported (v3.2 supported) | Supported |
59
+ | GLM | Partially supported (5.1 supported) | Supported |
60
+ | Kimi | Supported | Supported |
61
+ | MiniMax | Not supported | Supported |
62
+
63
+ ### How Multimodal Embeddings Are Billed
64
+
65
+ Embedding models are priced separately by input data type. Text input uses a single input price, while image and video inputs are billed by the number of multimodal tokens at a unit price higher than text input.
66
+
67
+ ## Overseas Model List Prices
68
+
69
+ > ⚠️ **Note**: The prices below are public list prices, in USD per million tokens (USD / M tokens). **Model market prices fluctuate, and list prices may change as the market changes. Actual settled prices follow the bill.** Overseas list prices exclude tax. VAT will be charged separately according to local tax requirements (for example, in Singapore an additional 9% GST applies per local regulations).
70
+
71
+ ### Anthropic Claude Series
72
+
73
+ | Model | Input | Output | Explicit·Write·5min | Explicit·Write·1h | Explicit·Hit |
74
+ | --- | --- | --- | --- | --- | --- |
75
+ | claude-opus-4-7 | 5 | 25 | 6.25 | 10 | 0.5 |
76
+ | claude-opus-4-6 | 5 | 25 | 6.25 | 10 | 0.5 |
77
+ | claude-opus-4-5 | 5 | 25 | 6.25 | 10 | 0.5 |
78
+ | claude-sonnet-4-6 | 3 | 15 | 3.75 | 6 | 0.3 |
79
+ | claude-sonnet-4-5 | 3 | 15 | 3.75 | 6 | 0.3 |
80
+ | claude-haiku-4-5 | 1 | 5 | 1.25 | 2 | 0.1 |
81
+
82
+ ### OpenAI GPT Series
83
+
84
+ | Model | Context Window | Input | Output | Implicit·Hit |
85
+ | --- | --- | --- | --- | --- |
86
+ | gpt-5.4-pro | ≤272K | 30 | 180 | — |
87
+ | gpt-5.4-pro | >272K | 60 | 270 | — |
88
+ | gpt-5.4 | ≤272K | 2.5 | 15 | 0.25 |
89
+ | gpt-5.4 | >272K | 5 | 22.5 | 0.5 |
90
+ | gpt-5.4-mini | — | 0.75 | 4.5 | 0.075 |
91
+ | gpt-5.5 | ≤272K | 5 | 30 | 0.5 |
92
+ | gpt-5.5 | >272K | 10 | 45 | 1 |
93
+ | gpt-5.2-pro | — | 21 | 168 | — |
94
+ | gpt-5.2-2025-12-11 | 1M tokens | 1.75 | 14 | 0.175 |
95
+ | gpt-5-2025-08-07 | 1M tokens | 1.25 | 10 | 0.125 |
96
+ | gpt-5-mini-2025-08-07 | 1M tokens | 0.25 | 2 | 0.025 |
97
+ | gpt-5-nano-2025-08-07 | 1M tokens | 0.05 | 0.4 | 0.005 |
98
+ | gpt-4.1-2025-04-14 | 1M tokens | 2 | 8 | 0.5 |
99
+ | gpt-4.1-mini-2025-04-14 | 1M tokens | 0.4 | 1.6 | 0.1 |
100
+ | gpt-4o-2024-08-06 | 128K tokens | 2.5 | 10 | 1.25 |
101
+ | o4-mini | — | 1.1 | 4.4 | 0.275 |
102
+ | o3 | — | 2 | 8 | 0.5 |
103
+
104
+ ### Qwen Series
105
+
106
+ | Sub-series | Model | Context Window | Input | Output | Explicit·Write | Explicit·Hit | Implicit·Hit |
107
+ | --- | --- | --- | --- | --- | --- | --- | --- |
108
+ | Qwen Max | qwen3.7-max | 0–1M | 2.5 | 7.5 | 3.125 | 0.25 | 0.5 |
109
+ | Qwen Max | qwen3.6-max-preview | 0–128K | 1.3 | 7.8 | 1.625 | 0.13 | — |
110
+ | Qwen Max | qwen3.6-max-preview | 128K–256K | 2 | 12 | 2.5 | 0.2 | — |
111
+ | Qwen Max | qwen3-max | 0–32K | 1.2 | 6 | 1.5 | 0.12 | 0.24 |
112
+ | Qwen Max | qwen3-max | 32K–128K | 2.4 | 12 | 3 | 0.24 | 0.48 |
113
+ | Qwen Max | qwen3-max | 128K–256K | 3 | 15 | 3.75 | 0.3 | 0.6 |
114
+ | Qwen Max | qwen3-max-preview | 0–32K | 1.2 | 6 | 1.5 | 0.12 | 0.24 |
115
+ | Qwen Max | qwen3-max-preview | 32K–128K | 2.4 | 12 | 3 | 0.24 | 0.48 |
116
+ | Qwen Max | qwen3-max-preview | 128K–256K | 3 | 15 | 3.75 | 0.3 | 0.6 |
117
+ | Qwen Plus | qwen3.6-plus | 0–256K | 0.5 | 3 | 0.625 | 0.05 | — |
118
+ | Qwen Plus | qwen3.6-plus | 256K–1M | 2 | 6 | 2.5 | 0.2 | — |
119
+ | Qwen Plus | qwen3.5-plus | 0–256K | 0.4 | 2.4 | 0.5 | 0.04 | 0.08 |
120
+ | Qwen Plus | qwen3.5-plus | 256K–1M | 0.5 | 3 | 0.625 | 0.05 | 0.1 |
121
+ | Qwen Flash | qwen3.6-flash | 0–256K | 0.25 | 1.5 | 0.3125 | 0.025 | — |
122
+ | Qwen Flash | qwen3.6-flash | 256K–1M | 1 | 4 | 1.25 | 0.1 | — |
123
+ | Qwen Flash | qwen3.5-flash | 0–1M | 0.1 | 0.4 | 0.125 | 0.01 | — |
124
+ | Qwen Embedding | qwen3-vl-embedding (text input) | — | 0.1 | — | — | — | — |
125
+ | Qwen Embedding | qwen3-vl-embedding (image / video input) | — | 0.258 | — | — | — | — |
126
+
127
+ ### DeepSeek Series
128
+
129
+ | Model | Input | Output | Explicit·Write | Explicit·Hit | Implicit·Hit |
130
+ | --- | --- | --- | --- | --- | --- |
131
+ | deepseek-v3.2 | 0.57 | 1.71 | 0.7125 | 0.057 | 0.114 |
132
+ | deepseek-v4-flash | 0.2 | 0.4 | — | — | — |
133
+ | deepseek-v4-pro | 2.4 | 4.8 | — | — | — |
134
+
135
+ ### GLM Series
136
+
137
+ | Model | Context Window | Input | Output | Explicit·Write | Explicit·Hit | Implicit·Hit |
138
+ | --- | --- | --- | --- | --- | --- | --- |
139
+ | glm-4.7 | 0–32K | 0.431 | 2.007 | — | — | 0.0862 |
140
+ | glm-4.7 | 32K–166K | 0.574 | 2.294 | — | — | 0.1148 |
141
+ | glm-5 | 0–32K | 0.573 | 2.58 | — | — | 0.1146 |
142
+ | glm-5 | 32K–166K | 0.86 | 3.154 | — | — | 0.172 |
143
+ | glm-5.1 | 0–32K | 0.825 | 3.301 | 1.03125 | 0.0825 | 0.165 |
144
+ | glm-5.1 | 32K–200K | 1.1 | 3.851 | 1.375 | 0.11 | 0.22 |
145
+
146
+ ### Kimi Series
147
+
148
+ | Model | Input | Output | Explicit·Write | Explicit·Hit | Implicit·Hit |
149
+ | --- | --- | --- | --- | --- | --- |
150
+ | kimi-k2.5 | 0.574 | 3.011 | 0.7175 | 0.0574 | 0.1148 |
151
+ | kimi-k2.6 | 0.8939 | 3.7131 | 1.117375 | 0.08939 | 0.17878 |
152
+
153
+ ### MiniMax Series
154
+
155
+ | Model | Input | Output | Implicit·Hit |
156
+ | --- | --- | --- | --- |
157
+ | MiniMax-M2.5 | 0.304 | 1.213 | 0.0608 |
158
+
159
+ ## Billing Examples
160
+
161
+ Text model: Calling claude-sonnet-4-6 with 10,000 input tokens and 2,000 output tokens, no cache hit:
162
+
163
+ ```
164
+ 10000 / 1,000,000 × 3 + 2000 / 1,000,000 × 15 = $0.06
165
+ ```
166
+
167
+ Text model with explicit cache: Calling claude-haiku-4-5. The first request writes 5,000 tokens to the 5-minute cache tier and outputs 1,000 tokens. The second request hits the cache for 5,000 tokens, with 500 new input tokens and 1,000 output tokens:
168
+
169
+ ```
170
+ First call: 5000 / 1,000,000 × 1.25 (Write·5min) + 1000 / 1,000,000 × 5 = $0.00625 + $0.005 = $0.01125
171
+ Second call: 5000 / 1,000,000 × 0.1 (Hit) + 500 / 1,000,000 × 1 + 1000 / 1,000,000 × 5 = $0.0005 + $0.0005 + $0.005 = $0.006
172
+ ```
173
+
174
+ Text model with implicit cache: Calling gpt-5-2025-08-07 with 10,000 input tokens (of which 6,000 hit the implicit cache) and 2,000 output tokens:
175
+
176
+ ```
177
+ Cached portion: 6000 / 1,000,000 × 0.125 = $0.00075
178
+ Uncached input: 4000 / 1,000,000 × 1.25 = $0.005
179
+ Output: 2000 / 1,000,000 × 10 = $0.02
180
+ Total: $0.02575
181
+ ```